OnDying - Actor
From Creation Kit
Member of: Actor Script
Event called when the actor begins dying.
Event OnDying(Actor akKiller)
- akKiller: The Actor that killed this one.
Event OnDying(Actor akKiller) if (akActionRef == Game.GetPlayer()) Debug.Trace("We are being killed by the player") else Debug.Trace("Someone (or something) else killed us") endIf endEvent