Difference between revisions of "OnUnequipped - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
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…')
 
imported>Tunaisafish
 
Line 15: Line 15:


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


== Examples ==
== Examples ==

Latest revision as of 07:25, 25 March 2012

Member of: ObjectReference Script

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

Syntax[edit | edit source]

Event OnUnequipped(Actor akActor)

Parameters[edit | edit source]

  • akActor: The actor that unequipped this object.

Notes[edit | edit source]

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

Examples[edit | edit source]

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

See Also[edit | edit source]