Added a simple inventory system to my game, but when I pick up an item, with an item in that same slot the item gets replaced and deleted not dropped like it’s supposed to. I’ve been trying to fix this for 3 days straight, any help will be so nice!
This is “pickiteminslot” function. This is “dropitemfromslot” function.Key bind + collision I’m not 100% sure what the collision does it might be for something else I made.
Item details structure. Slot changer and slot icon. Hud for inventory slots. Selecting slots.Pick item and drop item with a key bind.
That’s my code if there’s anything you need more of let me know!







