Mod:Creation Kit/OnDeferredKill - Actor

Member of: Mod:Creation Kit/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
Event OnDeferredKill(Actor akKiller)

Parameters

 * akKiller: The Actor that killed this one.

Examples
Event OnDeferredKill(Actor akKiller) if (akKiller == Game.GetPlayer) Debug.Trace("We were killed by the player!") endIf endEvent