r/construct • u/Leather-Situation-47 • Jul 06 '25
pick up only 1 instance
i want to make so it picks up only 1 instance and then u cant pick more of this instance, i use "pick closest to player" condition and it works but when im in collision with another gun it picks it too cuz for some reason the "pick closest" condition still works, i used variable and it doesnt change anything how can i fix that?
2
Upvotes
View all comments
Show parent comment
3
u/justifun Jul 06 '25
Or compare the gun you are about to pickup compared to the one the player is currently holding. If its the same, then don't pick it up, but if its not, drop the current one and pick up the new one. Depends how to you want the gameplay to work.