OnDeferredKill - Actor
Revision as of 10:00, 8 December 2014 by imported>3Nd R1m
Member of: Actor Script
Event called when an actor set to do deferred kill mode gets killed (once). May be called more than once on a single actor before they die. Most useful on flying actors (Vertibirds) which usually enter a "crash mode" when killed in the air but don't actually die until they hit the ground.
Syntax[edit | edit source]
Event OnDeferredKill(Actor akKiller)
Parameters[edit | edit source]
- akKiller: The Actor that killed this one.
Examples[edit | edit source]
Event OnDeferredKill(Actor akKiller)
if (akKiller == Game.GetPlayer())
Debug.Trace("We were killed by the player!")
endIf
endEvent