Beta Documentation - Subject to change.

Event fired when an item is unequipped.

Syntax

Lua
function Equipment:ItemUnequipped(sender, args);

Parameters

sender
Type: table
The event sender.
args
Type: table
The event arguments

Remarks

Whenever a player has an item equiped through user actions or game action, this event is fire. The event is fired prior to the item actually being removed in order to give plugins a chance to access the item data before it has been completely deleted. This means that iterating the equipment in an event handler for unequipping items will still return the item being unequipped. The Index field in the arguments table can be used to know which item was removed.

See Also