OnDeferredKill - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Event called when an actor set to do deferred kill mode gets killed (once). May be called more than once on a single actor before they die. Most useful on flying actors (Vertibirds) which usually enter a "crash mode" when killed in the air but don't actually die until they hit the ground.

Syntax[edit | edit source]

Event OnDeferredKill(Actor akKiller)

Parameters[edit | edit source]

  • akKiller: The Actor that killed this one.

Examples[edit | edit source]

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

See Also[edit | edit source]