Thread Tools Display Modes
Prev Previous Post   Next Post Next
05/24/14, 12:19 PM   #1
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 656
Get position of Target

I have been trying to figure out a better way to calculate the position of the target under the reticle in relation to the position of the player. I found a mod named RangeReticle that uses GetMapPlayerPosition('reticleover') and a rather complex bit of equations to determine the distance of the NPC from the player.

So I figured then GetMapPlayerPosition('player') is obviously the player. I would think GetMapPlayerPosition('reticleover') would return values for anything my reticle is over. For example, a harvest node, an NPC, a barrel, a Fishing hole, anything. However, it only seems to register and X and Y value when my reticle is over an NPC.

Is there anything else I can use to get the position of anything, not just an NPC, that is under my reticle?

Last edited by Sharlikran : 05/24/14 at 12:26 PM.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Get position of Target


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