After staring at the UIS-UCC integration demo all day, I still can't figure out how the frag grenade is deducted from the inventory after use?
In which script is this exchange happening?
Here is the stack trace
The item amount is adjusted the UCC way and the bridge overrides the default UCC functionality when adjusting the amount of items by adding or removing from the UIS inventory. I hope the makes sense.
A pro-tip in case you want to debug somethin in the integration. At the top of the UltimateInventorySystemBridge file there is a
Thanks to Sangemdoko's tip I discovered Throwable objects which is what I'm looking for, but I'm stuck on having my throwable object getting reequiped.
I'm able to get the first throwable object to equip and be thrown but I can't get it to reequip the following throwable object from the characters inventory and have it continue to throw the object until it runs out of said object.
I've followed the grenade demo and got it to work with just the UCC but I can't get it to work right with UCC and UIS.
I would check your animation events - when the item is reequipping it should send a reequip animation event if you aren't using a timer. Take a look at the grenade's throwable item component for an example.
Thanks for the speedy reply. I've check the reequip animation event and I don't think that is it.
I've done my best to copy the grenade example and I don't understand why only one of my throwable objects is being equipped and not the entire amount. How can I get my throwable objects to equip all of the items and not just only one of them?
Thank you Justin as always for your speedy replies.
After a bit of experimenting I figured out what the problems were.
1st: I had a call for a prefab attribute on the Grenade Category I duplicated. Silly me.
2nd: I had only one element in the prefabs array which caused only one item to be equipped and be useable. I would like to be able to throw just one object from one hand and not both but with time I'm sure I will figure that out.
More importantly I need to figure out how to attach better data when I ask questions. Do you have a tutorial or an example of how I can use Breakpoints to give better information of problems?
I know this won't be the last issue I'll be running into