26 lines
580 B
Plaintext
26 lines
580 B
Plaintext
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.GetActorValue("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 |