WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Get Target Positon or range (https://www.wowinterface.com/forums/showthread.php?t=26924)

Yksrep 08-28-09 09:48 PM

Get Target Positon or range
 
Hi

Im using WoW addon Studio, I just want to know does anyone know the code for getting your target range or how far away they are from you?

I know for you position it;s GetPlayerMapPosition for your taget would it be GetTargetMapPosition?

Im trying to build a targeting assissant addon. (Because I fail at targeting)

Thanks

Seerah 08-28-09 09:58 PM

There is no way to get coordinate positions of your target or anyone else. The only way is for other players that are using addons to send that data to one another from their respective GetPlayerMapPosition calls.

You can only guess at ranges based on whether certain spells/abilities are in range.

Here's an example: http://www.wowinterface.com/download...82-Fudge2.html

Another example would be the range displays in Stuf unit frames. (0-5yards, 5-10, etc)

Yksrep 08-28-09 10:53 PM

Bugga

Thanks for your help anyway.


All times are GMT -6. The time now is 07:48 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI