EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   UI User Discussion (https://www.eq2interface.com/forums/forumdisplay.php?f=26)
-   -   target distance or loc (https://www.eq2interface.com/forums/showthread.php?t=15780)

lakoda 06-30-2011 08:37 AM

target distance or loc
 
Is there a way to get your distance to your target? Or, if the game doesn't support getting us that information, what about a target's location? (apply a little trig and you have distance)

Thanks!
Lakoda (guk)

gm9 06-30-2011 08:48 AM

Neither of those.

lakoda 06-30-2011 08:51 AM

Bummer, I was hoping there was a way to get the loc via the track/waypoint mechanism. Oh well, too bad.

Thanks a bunch, though.

gm9 06-30-2011 11:02 AM

You can get the loc (pixel location on the map window), it's more an issue of not being able to do the math to get a (relative) distance from that.

lordebon 06-30-2011 11:44 AM

Quote:

Originally Posted by gm9 (Post 97687)
You can get the loc (pixel location on the map window), it's more an issue of not being able to do the math to get a (relative) distance from that.

^That

To my knowledge the math you need to actually figure out a distance using two locs (simple trig, aka Pythagorean theorem) is beyond the math capabilities in EQ2's current UI scripting, unfortunately. IIRC you can split the loc in to its three parts in a roundabout way, but you'd also have to implement a roundabout way of approximating it. You could probably implement Newton's method and it would be reasonably accurate depending on your starting "guess" and how many iterations of it you did.


All times are GMT -5. The time now is 09:29 AM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI