IsUnitPlayer
ESO Lua API function — used by 81 of the 3,030 addons we indexed (combined 10,982,783 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
IsUnitPlayer(string unitTag)Returns: bool isPlayer
Real usage — from HodorReflexes - DPS & ULT tracker
local tag = GetGroupUnitTagByIndex(i)
if IsUnitPlayer(tag) and IsUnitOnline(tag) then
local characterName = GetUnitName(tag)Short excerpt from the shipping addon HodorReflexes - DPS & ULT tracker — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| HodorReflexes - DPS & ULT tracker | 3,446,840 |
| Azurah - Interface Enhanced | 1,462,318 |
| Foundry Tactical Combat (FTC) | 1,097,601 |
| RuESO | 870,904 |
| Kill Counter | 577,202 |
| OdySupportIcons - Group Role Icons & More | 484,590 |