enderalse/source/scripts/_00e_a2_eyeofthestormfailsavesc.psc

26 lines
572 B
Plaintext
Raw Normal View History

Scriptname _00E_A2_EyeOfTheStormFailsaveSC extends activemagiceffect
Event OnEffectStart(Actor akTarget, Actor akCaster)
akVictim = akTarget
refOrigin = akVictim.PlaceAtMe(XMarker, 1)
EndEvent
Event OnEffectFinish(Actor akTarget, Actor akCaster)
If (akTarget.GetAV("Health") <= 0) && !bAlreadyDead
Game.GetPlayer().PushActorAway(akVictim, 0.5)
akVictim.ApplyHavokImpulse(0, 0, -1, 100)
bAlreadyDead = True
Utility.Wait(0.2)
EndIf
refOrigin.Delete()
EndEvent
bool bAlreadyDead
ObjectReference refOrigin
Actor akVictim
Static Property XMarker Auto