OnKill - Actor
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