OnKill - Actor

From the Fallout4 CreationKit Wiki
Revision as of 08:46, 10 April 2015 by imported>Plplecuyer (→‎Examples)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

Event called when the actor kills another.

Syntax[edit | edit source]

Event OnKill(Actor akVictim)

Parameters[edit | edit source]

  • akVictim: The Actor that this actor killed.

Examples[edit | edit source]

Event OnKill(Actor akVictim)
  if (akVictim == Game.GetPlayer())
    Debug.Trace("We killed the player!")
  endIf
endEvent

See Also[edit | edit source]