Thanks for the reply,
I can't get the "nearest object" case to work.
I did the following:
1. If player hitbox overlaps box.
2. If player presses D && Trigger once while true
3. Pick nearest box to hitbox
4. Destroy box.
The problem is that it does not destroy one box. It destroys all boxes that are touching the player hitbox simultaneously.
Can this be fixed somehow?
Again, I only want to pick ONE box at a time.
Thanks.