OnDeath - Actor

From the CreationKit Wiki
Revision as of 22:00, 25 November 2018 by imported>DavidJCobb (reported; not personally witnessed)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

See Also[edit | edit source]