18 lines
351 B
Plaintext
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
|
||
|
|