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.
Develop games in your browser. Powerful, performant & highly capable.
Just use the distance expression, keeping track of the shortest distance.
blackhornet Thank you very much! I'll see how I adapt your example to what I need!