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

Description

Wiki Description

Event called when the actor begins dying.

Documentation Comment

Event that is triggered when this actor begins to die


Parameters

ActorakKiller

CK Wiki Description

The Actor that killed this one.


Examples

Event OnDying(Actor akKiller)
  if (akActionRef == Game.GetPlayer())
    Debug.Trace("We are being killed by the player")
  else
    Debug.Trace("Someone (or something) else killed us")
  endIf
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends Actor

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