Hi everyone.
I've been trying to figure out what I'm doing wrong for a few days now, and I still haven't gotten an answer :P
I'm working on an RPG inventory, I created a DRAG & DROP system that works, but there is one big BUT.
All slots in the inventory are the same Inv_Slot object (highlighted in red), I change the appearance of the slots that are supposed to be slots for weapons, shields, etc.
What I was able to achieve looks like this, and it works:
However, a problem arises when I want the right type of equipment to go into the right slot, for example, it's a weapon that is known to go into a weapon slot, when you put it into another slot it goes back into the inventory, or when you put the wrong type of weapon into a slot, the same thing happens.
I've tried many solutions but can't figure out how to solve it. If someone would be so kind and suggest what I am doing wrong and guide me to the right way of thinking.
Thank you