Background for Fallout 4
Member of the Actor script
eventOnDeath(ActorakKiller)

Description

Wiki Description

Event called when the actor finishes dying.

Documentation Comment

Event that is triggered when this actor finishes dying


Parameters

ActorakKiller

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(Actor 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.