Left hand grenade unequip on Inventory item add

finaratic

Member
Hello! I have this code i use to give item to player. But when i run it left hand grenade in slot 1 unequips. How this can be happening if i add slot 0 item?
1733838236887.png

So until i run this code grenade works fine
 
Without stepping through the code it's hard to say, but my guess is that you could have an ItemSetRule which prevents the ItemSet from being active when the item is added to slot 0.
 
Without stepping through the code it's hard to say, but my guess is that you could have an ItemSetRule which prevents the ItemSet from being active when the item is added to slot 0.
I have default item set rules just like in the demo, i dont get it why it disables it when other item equipped. Because for example the gun that being picked can work with left hand grenade when you spawn, but after this func run it uneqips left hand grenade
 
Can you tell me how to reproduce what you are seeing within the demo scene? I'll then have a better idea. It is likely either an item set or state that is causing the unequip.

You could also debug this by placing a breakpoint within Inventory.Unequip and see what calls it.
 
Back
Top