OnDying - Actor

From Creation Kit
Jump to: navigation, search

Member of: Actor Script

Event called when the actor begins dying.

Syntax

Event OnDying(Actor akKiller)

Parameters

  • akKiller: The Actor that killed this one.

Examples

Event OnDying(Actor akKiller)
  if (akActionRef == Game.GetPlayer())
    Debug.Trace("We are being killed by the player")
  else
    Debug.Trace("Someone (or something) else killed us")
  endIf
endEvent

See Also