OnKill - Actor

From Creation Kit
Jump to: navigation, search

Member of: Actor Script

Event called when the actor kills another.

Syntax

Event OnKill(Actor akVictim)

Parameters

  • akVictim: The Actor that this actor killed.

Examples

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

See Also