ESODecoded

EVENT_UNIT_DESTROYED

ESO Lua API function — used by 28 of the 3,030 addons we indexed (combined 3,492,292 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

EVENT_UNIT_DESTROYED(string unitTag)

Real usage — from RaidNotifier Updated

    EVENT_MANAGER:UnregisterForEvent("LibGroupSocketUltimateHandler", EVENT_UNIT_CREATED)
    EVENT_MANAGER:UnregisterForEvent("LibGroupSocketUltimateHandler", EVENT_UNIT_DESTROYED)
    StopSending();

Short excerpt from the shipping addon RaidNotifier Updatedits 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
RaidNotifier Updated2,789,746
Bandits Companions and Pets192,393
Votan's Group Pins96,300
Group Damage Share78,726
Pet Health67,714
JoGroup Quick Update38,677