ESODecoded

EVENT_PLAYER_COMBAT_STATE

ESO Lua API function — used by 450 of the 3,030 addons we indexed (combined 61,840,310 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

EVENT_PLAYER_COMBAT_STATE(bool inCombat)

Real usage — from Action Duration Reminder

  EVENT_MANAGER:RegisterForEvent(addon.name.."_ChatAlert", EVENT_CHAT_MESSAGE_CHANNEL, l.onChatMessageChannel)
  EVENT_MANAGER:RegisterForEvent(addon.name.."_ChatAlert", EVENT_PLAYER_COMBAT_STATE, l.onPlayerCombatState)
  l.inCombat = IsUni

Short excerpt from the shipping addon Action Duration Reminderits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Action Duration Reminder6,522,011
Srendarr - Aura, Buff & Debuff Tracker5,058,870
LibCombat5,017,654
Code's Combat Alerts4,445,158
Votan's Minimap4,211,718
HodorReflexes - DPS & ULT tracker3,446,840