OnDying - Actor

Revision as of 16:29, 17 November 2015 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Actor Script

Event called when the actor begins dying.

SyntaxEdit

Event OnDying(Actor akKiller)

ParametersEdit

  • akKiller: The Actor that killed this one.

ExamplesEdit

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 AlsoEdit