ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Wish List (https://www.esoui.com/forums/forumdisplay.php?f=177)
-   -   [outdated] GetMapPlayerPosition Adjustments (https://www.esoui.com/forums/showthread.php?t=7740)

Sordrak 04/23/18 06:10 AM

[outdated] GetMapPlayerPosition Adjustments
 
Hey Ho

The current definition is as following:
* GetMapPlayerPosition(*string* _unitTag_)
** _Returns:_ *number* _normalizedX_, *number* _normalizedZ_, *number* _heading_

It would be awesome if Zenimax could add an additional fourth return value *number* _normalizedY_
This would allow adding some nice features ;) E.g. would it be way easier to add 3D objects.

Shinni 04/23/18 03:40 PM

As temporary work-around you can use lib3D (copy it from HarvestMap, don't use the outdated version I uploaded to esoui) and call

local x,y,z = Lib3D:ComputePlayerRenderSpacePosition()

edit: ah wait. you probably want to get the position of group members etc.
my solution only works for the player itself.

Sordrak 04/24/18 01:18 AM

Quote:

Originally Posted by Shinni (Post 34516)
As temporary work-around you can use lib3D (copy it from HarvestMap, don't use the outdated version I uploaded to esoui) and call

local x,y,z = Lib3D:ComputePlayerRenderSpacePosition()

edit: ah wait. you probably want to get the position of group members etc.
my solution only works for the player itself.

correct, it is about other players / unitTags.


All times are GMT -6. The time now is 12:38 PM.

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