ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   How to get player Character name? (https://www.esoui.com/forums/showthread.php?t=1737)

zgrssd 06/06/14 10:36 AM

How to get player Character name?
 
For my CCDR I logically have use the character names to order my data (so I can have Character specific data in my account data).
I have seen other addons do that (most craft and reseach addons need too since they correlate data from multiple sources).
Yet I cannot find any "GetPlayer Name" or similar function or any global constant the would logically contain the name. So how do I get a Characters name/some other unique ID to indentify them by?

Froali 06/06/14 10:45 AM

What about
Lua Code:
  1. GetUnitName("player")
?

http://wiki.esoui.com/API#Unit

Kentarii 06/06/14 03:00 PM

Do you have zgoo installed? You could then just look at the unit data there and the methods used.

zgrssd 06/06/14 03:36 PM

Quote:

Originally Posted by Froali (Post 9149)
What about
Lua Code:
  1. GetUnitName("player")
?

http://wiki.esoui.com/API#Unit

That is the right one.


All times are GMT -6. The time now is 06:36 AM.

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