Background for Starfield
Member of the Actor script
eventOnDeferredKill(ActorakKiller)

Description

Wiki Description

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.

Documentation Comment

Event that is triggered when this actor gets a deferred kill added
(they were in deferred kill mode and got "killed")


Parameters

  1. ActorakKiller

    CK Wiki Description

    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

Auto-Generated Example

Scriptname MyCoolScript extends Actor

event OnDeferredKill(Actor akKiller)
    Debug.trace("Event received - OnDeferredKill: akKiller = " + akKiller)
endEvent

Related Pages


Additional References

View this event’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.