ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Party Members Location (https://www.esoui.com/forums/showthread.php?t=8457)

Function 04/12/19 01:56 PM

Party Members Location
 
Hello, today I have decided that I would like to try and develop an addon for ESO. I would like to start with a simple calculation of distance between myself a party member which is just the distance between two points, my problem is how to get the second point (for the party member). From my research I saw that I will need to use sirinsidiator's LibGPS2 for global positioning due to the maps using different indexing. I also saw in the ESOUI API that I could use "GetMapPlayerPosition('player')" to get my own coordinates but nothing on how to get a party members. Is this possible? If so would someone be kind enough to teach me?

Thank you for any help,
Function

Baertram 04/12/19 02:21 PM

The group (party) members got tags like you got "player", they will be group1, group2 etc.
Maybe it works with GetMapPlayerPosition(groupN) then.

btw: there are already addons calculating the distance to something, maybe you can inspect them to learn how it is done. WAypointIt I think shows the distance to a waypoint you have set (if I remember correctly).

Function 04/12/19 04:16 PM

Quote:

Originally Posted by Baertram (Post 37726)
The group (party) members got tags like you got "player", they will be group1, group2 etc.
Maybe it works with GetMapPlayerPosition(groupN) then.

btw: there are already addons calculating the distance to something, maybe you can inspect them to learn how it is done. WAypointIt I think shows the distance to a waypoint you have set (if I remember correctly).

Perfect, thank you so much Baertram.


All times are GMT -6. The time now is 08:28 AM.

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