How do I unequip a UCC item from an external method other than ItemAction?

From anywhere you may call this ExecuteEvent function:
Code:
EventHandler.ExecuteEvent<ItemInfo, bool>(itemInfo.Inventory.gameObject, "OnItemActionEquipUnequip", itemInfo, m_Equip);

The first parameter is the player gameobject (where your Inventory Bridge component is located)
The second is the event name to equip unequip.
The third is the item to equip unequip
The fourth is whether or not you wish to equip or unequip
 
Top