GetAbilityDuration
ESO Lua API function — used by 65 of the 3,030 addons we indexed (combined 39,556,730 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetAbilityDuration(integer abilityId, integer:nilable overrideRank, string casterUnitTag)Returns: integer:nilable durationMs
Real usage — from Combat Metrics
local duration = GetAbilityDuration(abilityId)
Short excerpt from the shipping addon Combat Metrics — 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 |
|---|---|
| Combat Metrics | 7,085,289 |
| Action Duration Reminder | 6,522,011 |
| AUI - Advanced UI | 5,406,091 |
| Srendarr - Aura, Buff & Debuff Tracker | 5,058,870 |
| Code's Combat Alerts | 4,445,158 |
| HodorReflexes - DPS & ULT tracker | 3,446,840 |