Quantcast
Get Target Positon or range - WoWInterface
Thread Tools Display Modes
08-28-09, 09:48 PM   #1
Yksrep
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 21
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
  Reply With Quote
08-28-09, 09:58 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,794
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)
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
08-28-09, 10:53 PM   #3
Yksrep
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 21
Bugga

Thanks for your help anyway.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Get Target Positon or range

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off