2021-10-05 22:22:24 +00:00
|
|
|
Scriptname _00E_AnimTest_SC extends Actor
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
|
|
|
|
TryResetAnimations(GetCurrentPackage())
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnPackageChange(Package akOldPackage)
|
2021-10-05 22:22:24 +00:00
|
|
|
If Self.Is3DLoaded()
|
2021-10-05 22:15:58 +00:00
|
|
|
TryResetAnimations(akOldPackage)
|
|
|
|
EndIf
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Function TryResetAnimations(Package akOldPackage)
|
|
|
|
If akOldPackage && akCustomAnimPackageArray.Find(akOldPackage) >= 0
|
|
|
|
Debug.SendAnimationEvent(Self, "IdleForceDefaultState")
|
|
|
|
EndIf
|
|
|
|
EndFunction
|
|
|
|
|
2021-10-05 22:22:24 +00:00
|
|
|
Event OnLoad()
|
|
|
|
ResetAI()
|
|
|
|
EndEvent
|
|
|
|
|
2021-10-05 22:15:58 +00:00
|
|
|
Package[] Property akCustomAnimPackageArray Auto
|