IsUnitGroupLeader
ESO Lua API function — used by 72 of the 3,030 addons we indexed (combined 9,642,941 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
IsUnitGroupLeader(string unitTag)Returns: bool isGroupLeader
Real usage — from Provision's TeamFormation : Teammate Radar
local updateIsNecessaryOnSameZone = updateIsNecessary(index, "sameZone", sameZone)
local isGroupLeader = IsUnitGroupLeader(unitTag)
local updateIsNecessaryOnGrLeader = updateIsNecessary(index, "isGroupLeader", isGroupLeader)Short excerpt from the shipping addon Provision's TeamFormation : Teammate Radar — 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 |
| Provision's TeamFormation : Teammate Radar | 1,506,270 |
| Foundry Tactical Combat (FTC) | 1,097,601 |
| Dungeon Tracker | 1,023,919 |
| OdySupportIcons - Group Role Icons & More | 484,590 |
| CyrHUD | 325,521 |