Thread Tools Display Modes
06/06/14, 10:36 AM   #1
zgrssd
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 280
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?
  Reply With Quote
06/06/14, 10:45 AM   #2
Froali
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 13
What about
Lua Code:
  1. GetUnitName("player")
?

http://wiki.esoui.com/API#Unit
  Reply With Quote
06/06/14, 03:00 PM   #3
Kentarii
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 42
Do you have zgoo installed? You could then just look at the unit data there and the methods used.
  Reply With Quote
06/06/14, 03:36 PM   #4
zgrssd
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 280
Originally Posted by Froali View Post
What about
Lua Code:
  1. GetUnitName("player")
?

http://wiki.esoui.com/API#Unit
That is the right one.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » How to get player Character name?


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