ESODecoded

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:Regist

Short excerpt from the shipping addon LibCombatits 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
LibCombat5,017,654
Code's Combat Alerts4,445,158
Foundry Tactical Combat (FTC)1,097,601
CrutchAlerts916,918
Kill Counter577,202
OdySupportIcons - Group Role Icons & More484,590