enderalse/scripts/source/_00e_magiceffect_killonhit.psc

18 lines
351 B
Plaintext

Scriptname _00E_MagicEffect_KillOnHit extends activemagiceffect
Event OnEffectStart(Actor akTarget, Actor akCaster)
If akTarget.GetActorBase().IsEssential()
akTarget.GetActorBase().SetEssential(False)
EndIf
If akTarget.IsGhost()
akTarget.SetGhost(False)
EndIf
akTarget.Kill(akCaster)
akCaster.PushActorAway(akTarget, 5.0)
EndEvent