jimi
Member
Hi there,
I'm running into an issue with equipping items that were unequipped during an itemAction.
I was unequipping them like this:
However it seems like something changed with last update because now I'm getting this error whenever I try to requip any item after it has been equipped this way.
I've attached a screenshot of the full error stack along with the item showing up in the Inventory & Bride component.
Once this happens, the game is no longer playable. The inventory system will not equip any item, whether this one or a new one.
One work around that kinda works but not really is to fake the unequip with this event:
The item remains visible but not useable during the item action so then you can manually unequip then reequip in the game UI but this is really awkward and not shippable.
How can I unequip the current item safety from a different item's itemAction?
I'm running into an issue with equipping items that were unequipped during an itemAction.
I was unequipping them like this:
C#:
var item = UCCBridge.GetActiveItem(0);
if (item != null) UCCBridge.UnequipItem(0);
However it seems like something changed with last update because now I'm getting this error whenever I try to requip any item after it has been equipped this way.
Error: Unable to find the ItemSet for item
I've attached a screenshot of the full error stack along with the item showing up in the Inventory & Bride component.
Once this happens, the game is no longer playable. The inventory system will not equip any item, whether this one or a new one.
One work around that kinda works but not really is to fake the unequip with this event:
C#:
var item = UCCBridge.GetActiveItem(0);
EventHandler.ExecuteEvent(itemUser.gameObject, "OnAbilityUnequipItemComplete", item, 0);
How can I unequip the current item safety from a different item's itemAction?