OnItemEquipped - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Event called when the actor equips an object.

Syntax[edit | edit source]

Event OnItemEquipped(Form akBaseObject, ObjectReference akReference)

Parameters[edit | edit source]

  • akBaseObject: The base object the actor just equipped.
  • akReference: The reference that the actor just equipped - if the reference is persistant. Otherwise, None.

Examples[edit | edit source]

Event OnItemEquipped(Form akBaseObject, ObjectReference akReference)
  if akBaseObject as Weapon
    Debug.Trace("This actor just equipped a weapon!")
  endIf
endEvent

Notes[edit | edit source]

  • This is the event to use when wanting to detect the player using a consumable item.

See Also[edit | edit source]