enderalse/scripts/source/_00e_animtest_sc.psc

24 lines
653 B
Plaintext
Raw Normal View History

2021-10-05 22:22:24 +00:00
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)
2021-10-05 22:22:24 +00:00
If Self.Is3DLoaded()
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
Package[] Property akCustomAnimPackageArray Auto