OnUnequipped - ObjectReference

From the CreationKit Wiki
Revision as of 16:47, 13 April 2010 by imported>Jlundin (Created page with 'Category:Scripting Category:Papyrus Category:Events '''Member of:''' ObjectReference Script Event called when the object reference has been unequipped by an acto…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ObjectReference Script

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

Syntax

Event OnUnequipped(Actor akActor)

Parameters

  • akActor: The actor that unequipped this object.

Notes

When an object is unequipped it may still be inside a container, which means that you cannot call native functions on it.

Examples

Event OnUnequipped(Actor akActor)
  if akActor == Game.GetPlayer()
    Debug.Trace("We were unequipped from the player!")
  endIf
endEvent

See Also