OnDeath - Actor

From the CreationKit Wiki
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]