So I’m pretty new to UE, and I’m trying to get an inventory system working for a multiplayer game. I have it set up so that when you look at a grabbable item and interact with it, it goes into your inventory in the “hand” slot (marked in orange). From there you can use the 1-4 keys to place it in “pouches.” Pressing the number keys just causes whatever item is in your “hand” slot to switch with the item in the corresponding “pouch” slot. This system works fine on server side, but client side has a weird issue. Whenever the client picks up an item, it works fine the first time, but then when they go to pick up another item it doesn’t work, even if their “hand” slot is empty. I have it set to display an error message when this happens, and also to write out the name of the item in the “hand” slot (Slot 0). The error tells me that the first item I picked up is still in slot 0, even if I’ve switched it with another item.
The error mentioned:
The function for picking things up:
The spot where that function is called (in a component of the target item):
Item switching script: