OnDeath - Actor

From Creation Kit
Jump to: navigation, search

Member of: Actor Script

Event called when the actor finishes dying.

Syntax

Event OnDeath(Actor akKiller)

Parameters

  • akKiller: The Actor that killed this one.

Examples

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

Notes

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

See Also