03.03.2013, 15:30
Just a little not at the beginning: I searched for a tutorial for this everywhere and could not find.
My question is how can I detect the closest created object to me?
Let's say I made a command which is /make atm, the command creates an ATM object at the player pos, but let's say the player did not notice where he was standing or anything and the ATM is not at the correct place..
What I want to do is to create a /remove atm command but I do not know how to detect the closest ATM.
Thank you in advance.
My question is how can I detect the closest created object to me?
Let's say I made a command which is /make atm, the command creates an ATM object at the player pos, but let's say the player did not notice where he was standing or anything and the ATM is not at the correct place..
What I want to do is to create a /remove atm command but I do not know how to detect the closest ATM.
Thank you in advance.