- Found in:
- Vanilla
eventOnDeath(ObjectReferenceakKiller)
Description
Wiki Description
Event called when the actor finishes dying.
Documentation Comment
Event that is triggered when this actor finishes dying
Parameters
ObjectReferenceakKiller
CK Wiki Description
The Actor that killed this one.
Examples
Event OnDeath(Actor akKiller)
if (akKiller == Game.GetPlayer())
Debug.Trace("We were killed by the player!")
endIf
endEventAuto-Generated Example
Scriptname MyCoolScript extends Actor
event OnDeath(ObjectReference akKiller)
Debug.trace("Event received - OnDeath: akKiller = " + akKiller)
endEvent