OnDeath - Actor

Revision as of 21:00, 25 November 2018 by imported>DavidJCobb (reported; not personally witnessed)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Actor Script

Event called when the actor finishes dying.

SyntaxEdit

Event OnDeath(Actor akKiller)

ParametersEdit

  • akKiller: The Actor that killed this one.

ExamplesEdit

Event OnDeath(Actor akKiller)
  if (akKiller == Game.GetPlayer())
    Debug.Trace("We were killed by the player!")
  endIf
endEvent

NotesEdit

  • If an actor is killed with a killmove, their health may still be non-zero when this event fires.

See AlsoEdit