enderalse/scripts/source/_00e_animtest_sc.psc

24 lines
653 B
Plaintext

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