Background for Fallout 4
Member of the Actor script
eventOnKill(ActorakVictim)

Description

Wiki Description

Event called when the actor kills another.

Documentation Comment

Event that is triggered when this actor kills another


Parameters

ActorakVictim

CK Wiki Description

The Actor that this actor killed.


Examples

Event OnKill(Actor akVictim)
  if (akVictim == Game.GetPlayer())
    Debug.Trace("We killed the player!")
  endIf
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends Actor

event OnKill(Actor akVictim)
    Debug.trace("Event received - OnKill: akVictim = " + akVictim)
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.