OnEquipped - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

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

Syntax[edit | edit source]

Event OnEquipped(Actor akActor)

Parameters[edit | edit source]

  • akActor: The actor that equipped this object.

Examples[edit | edit source]

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

Notes[edit | edit source]

  • 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)

See Also[edit | edit source]