ESODecoded

IsUnitOnline

ESO Lua API function — used by 95 of the 3,030 addons we indexed (combined 12,124,190 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

IsUnitOnline(string unitTag)

Returns: bool isOnline

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
Loot Log1,608,502
Provision's TeamFormation : Teammate Radar1,506,270
Foundry Tactical Combat (FTC)1,097,601
OdySupportIcons - Group Role Icons & More484,590
Wizard's Wardrobe481,038