11.04.2017, 13:41
you can create another variable for example
playercrate[3] and when the player picks the third crate set playercrate[3] = 1;
if he tries to drop it check which variable is on and for example if playercrate[3] has value 1, it means that he is holding crate 3 and this way you can update the location of crate 3.
playercrate[3] and when the player picks the third crate set playercrate[3] = 1;
if he tries to drop it check which variable is on and for example if playercrate[3] has value 1, it means that he is holding crate 3 and this way you can update the location of crate 3.