Mod:Creation Kit/OnDying - Actor

Member of: Mod:Creation Kit/Actor Script

Event called when the actor begins dying.

Syntax
Event OnDying(Actor akKiller)

Parameters

 * akKiller: The Actor that killed this one.

Examples
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