How To Tell The Distance Between Mobs? in Developer Help
|
|
I was wondering is it possible to tell the distance between two mob's that are targeted by a usr. Also if the distance can be found is it possible to put objects around their area so they are inclosed in it.
|
Have you bothered to look at the reference? You could easily search 'distance', and you'd find exactly what you're looking for, I'm sure.
As for the surrounding objects:
Take a look at the definition of the for() loop.