ESODecoded

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 trackerits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
HodorReflexes - DPS & ULT tracker3,446,840
Azurah - Interface Enhanced1,462,318
Foundry Tactical Combat (FTC)1,097,601
RuESO870,904
Kill Counter577,202
OdySupportIcons - Group Role Icons & More484,590