HasActiveCompanion
ESO Lua API function — used by 30 of the 3,030 addons we indexed (combined 6,731,614 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
HasActiveCompanion()Returns: bool hasActiveCompanion
Real usage — from Inventory Insight
function IIfA:UpdateCompanionCharLookups()
if not HasActiveCompanion() then
returnShort excerpt from the shipping addon Inventory Insight — 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 |
|---|---|
| Inventory Insight | 2,763,446 |
| PerfectPixel | 1,399,987 |
| Foundry Tactical Combat (FTC) | 1,097,601 |
| Info Panel | 368,274 |
| Bandits Companions and Pets | 192,393 |
| LootDrop Reborn | 192,278 |