How I can calculate how far away is an instance of another and return its value.
example:
I have a player instance and 5instances type monster.
Calculate that instance is closer and return its ID.
Just use the distance expression, keeping track of the shortest distance.
Develop games in your browser. Powerful, performant & highly capable.
blackhornet Thank you very much! I'll see how I adapt your example to what I need!