enderalse/scripts/source/_00e_a2_chaosrunestunsc.psc

30 lines
606 B
Plaintext

Scriptname _00E_A2_ChaosruneStunSC extends activemagiceffect
Event OnEffectStart(Actor akTarget, Actor akCaster)
; Debug.MessageBox("Stun started")
KillMove.SetValueInt(0)
Utility.Wait(1)
AbsorbHealthFXS.Play(akTarget)
akTarget.EnableAI(False)
EndEvent
Event OnEffectFinish(Actor akTarget, Actor akCaster)
If Utility.GetINIBool("bVATSDisable:VATS") == 0
KillMove.SetValueInt(1)
EndIf
AbsorbHealthFXS.Stop(akTarget)
akTarget.EnableAI(True)
EndEvent
Event OnDying(Actor akKiller)
Self.Dispel()
EndEvent
EffectShader Property AbsorbHealthFXS Auto
GlobalVariable Property KillMove Auto