ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   NPC Id (https://www.esoui.com/forums/showthread.php?t=9044)

Crunatus 03/18/20 08:15 AM

NPC Id
 
Hi,
Can I somehow find out UnitId by analogy with GetUnitName(string unitTag)?
For example Archmaster Siniel it's 8737

Baertram 03/18/20 08:33 AM

I doubt there is a unique unitId for each NPC in the game.
At least it wasn't in the past afaik.

Most of the GetUnit... functions use the unitTag (no id) which is a string like
"player"
"group1" etc and only work for yourself or group/guild members.

e.g. GetUnitName("player") will return your own character's name.
But I doubt you can use GetUnitName(npc).
Maybe only if you move the mouse over it and use this code:
GetUnitNameHighlightedByReticle()

P.S.
The 8738 seems to be an internal ID used on the UESP website. Not sure if this is also an ID used within the ESO code somewhere.


All times are GMT -6. The time now is 01:21 PM.

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