- Found in:
- Vanilla
eventOnKill(ObjectReferenceakVictim)
Description
Wiki Description
Event called when the actor kills another.
Documentation Comment
Event that is triggered when this actor kills another
Parameters
ObjectReferenceakVictim
CK Wiki Description
The Actor that this actor killed.
Examples
Event OnKill(Actor akVictim)
if (akVictim == Game.GetPlayer())
Debug.Trace("We killed the player!")
endIf
endEventAuto-Generated Example
Scriptname MyCoolScript extends Actor
event OnKill(ObjectReference akVictim)
Debug.trace("Event received - OnKill: akVictim = " + akVictim)
endEvent