OnDeath - Actor
Revision as of 21:00, 25 November 2018 by imported>DavidJCobb (reported; not personally witnessed)
Member of: Actor Script
Event called when the actor finishes dying.
Syntax[edit | edit source]
Event OnDeath(Actor akKiller)
Parameters[edit | edit source]
- akKiller: The Actor that killed this one.
Examples[edit | edit source]
Event OnDeath(Actor akKiller)
if (akKiller == Game.GetPlayer())
Debug.Trace("We were killed by the player!")
endIf
endEvent
Notes[edit | edit source]
- If an actor is killed with a killmove, their health may still be non-zero when this event fires.