So the item the player currently has is saved with a string variable in the player object. If the player already has an item, when they pick up a new one I need the old item to drop next to them. My setup currently looks like this
If the player doesn't have an item, it sets the item to the player, if they DO have an item, it spawns the item then sets the new item to the player. For some reason this doesn't work consistently, sometimes it spawns the correct item and sometimes it spawns the item I just picked up. Does anyone know why? Or a different setup that will work consistently?