Background for Starfield
Member of the Actor script
eventOnDeath(ObjectReferenceakKiller)

Description

Wiki Description

Event called when the actor finishes dying.

Documentation Comment

Event that is triggered when this actor finishes dying


Parameters

  1. 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
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends Actor

event OnDeath(ObjectReference akKiller)
    Debug.trace("Event received - OnDeath: 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.