Y ymo Member Nov 15, 2020 #1 How do I unequip a UCC item from an external method other than ItemAction?
Sangemdoko Moderator Staff member Nov 16, 2020 #2 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
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