Background for Fallout 4
Member of the ObjectReference script
eventOnEquipped(ActorakActor)

Description

Wiki Description

Event called when the object reference has been equipped by an actor.

Documentation Comment

Event received when this object is equipped by an actor


Caveats

CK Wiki - Notes

  • When an object is equipped it is inside a container, which means that you cannot call native functions on it. (Unless it is a persistent reference)

Parameters

ActorakActor

CK Wiki Description

The actor that equipped this object.


Examples

Event OnEquipped(Actor akActor)
  if akActor == Game.GetPlayer()
    Debug.Trace("We were equipped by the player!")
  endIf
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends ObjectReference

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