EVENT_COMBAT_EVENT
ESO Lua API function — used by 295 of the 3,030 addons we indexed (combined 55,226,317 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
EVENT_COMBAT_EVENT([ActionResult|#ActionResult] result, bool isError, string abilityName, integer abilityGraphic, [ActionSlotType|#ActionSlotType] abilityActionSlotType, string sourceName, [CombatUnitType|#CombatUnitType] sourceType, string targetName, [CombatUnitType|#CombatUnitType] targetType, integer hitValue, [CombatMechanicFlags|#CombatMechanicFlags] powerType, [DamageType|#DamageType] damageType, bool log, integer sourceUnitId, integer targetUnitId, integer abilityId, integer overflow)Real usage — from Action Duration Reminder
EVENT_MANAGER:RegisterForEvent(addon.name, EVENT_COMBAT_EVENT, l.onCombatEvent )
EVENT_MANAGER:RegisterForEvent(addon.name..'_fromPlayer', EVENT_COMBAT_EVENT, l.onCombatEventFromPlayer )Short 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 |
| Bandits User Interface | 6,130,317 |
| AUI - Advanced UI | 5,406,091 |
| Srendarr - Aura, Buff & Debuff Tracker | 5,058,870 |
| LibCombat | 5,017,654 |
| Code's Combat Alerts | 4,445,158 |