I'm trying to create a system where you can grab a total of 3 keys and they'll create a queue in your back, following you anywhere. Once you touch a locked door, the first key you grabbed will be used and destroyed, and the rest will take the next place in the queue. I used an array to make this possible.
Now, the problem comes with the order in which I grab the keys. If you coincidentally grab them by UID order, lower to higher, the system works perfectly fine, otherwise it will take 2 keys or even all the keys to open 1 single door.
I've remade it in a new clean project and the issue keeps happening, here's the C3P
Thanks for your help!