DoesUnitExist
ESO Lua API function — used by 186 of the 3,030 addons we indexed (combined 51,523,005 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
DoesUnitExist(string unitTag)Returns: bool exists
Real usage — from Action Duration Reminder
if not l.getSavedVars().coreMultipleTargetTracking then return end
if not DoesUnitExist('reticleover') then return end
-- 1. remove all enemy actions from self.idActionMapShort excerpt from the shipping addon Action Duration Reminder — 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 |
|---|---|
| Action Duration Reminder | 6,522,011 |
| AUI - Advanced UI | 5,406,091 |
| Srendarr - Aura, Buff & Debuff Tracker | 5,058,870 |
| LibCombat | 5,017,654 |
| AwesomeGuildStore | 4,722,462 |
| LibGPS | 4,027,526 |