View Single Post
Unread 03-05-12, 10:25 AM   #6
Nivlix
Premium Member
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2012
Posts: 6
Quote:
Originally Posted by Nivlix View Post
Once they drop the x,y,z coords in to the live api you should be able to get an exact range. You will have to be good at math though which I am not. I cant for the life of me remember the equation for finding distance based on two points on a 3d plane. I will see if I can find it and work on something like this once they finally drop x,y,z. The last question is will this be a value thats available under target. There are several options in Inspect.Unit.Detail that are only available to ("player").
So after further research finding the distance, given that you can see the x,y,z coords of the target and yourself would be something like this

distance = squareroot of |ax-bx|squared + |ay-by|squared + |az-bz|squared
Nivlix is offline   Reply With Quote