EVENT_UNIT_DEATH_STATE_CHANGED
ESO Lua API function — used by 90 of the 3,030 addons we indexed (combined 16,364,251 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
EVENT_UNIT_DEATH_STATE_CHANGED(string unitTag, bool isDead)Real usage — from LibCombat
self:RegisterEvent(EVENT_COMBAT_EVENT, OnResurrect, REGISTER_FILTER_COMBAT_RESULT, ACTION_RESULT_REINCARNATING)
self:RegisterEvent(EVENT_UNIT_DEATH_STATE_CHANGED, OnDeathStateChanged, REGISTER_FILTER_UNIT_TAG_PREFIX, "group")
self:RegistShort excerpt from the shipping addon LibCombat — 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 |
|---|---|
| LibCombat | 5,017,654 |
| Code's Combat Alerts | 4,445,158 |
| Foundry Tactical Combat (FTC) | 1,097,601 |
| CrutchAlerts | 916,918 |
| Kill Counter | 577,202 |
| OdySupportIcons - Group Role Icons & More | 484,590 |