GetUnitStealthState
ESO Lua API function — used by 61 of the 3,030 addons we indexed (combined 3,171,605 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetUnitStealthState(string unitTag)Returns: integer stealthState
Real usage — from Azurah - Interface Enhanced
if (theftPreventAccidental or theftCMakeSafer or theftPMakeSafer) then
isHidden = GetUnitStealthState('player')
Short excerpt from the shipping addon Azurah - Interface Enhanced — 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 |
|---|---|
| Azurah - Interface Enhanced | 1,462,318 |
| Event Tracker | 249,931 |
| Wykkyd Full Immersion | 223,536 |
| Lykeion's AutoLoot+ | 177,775 |
| Unboxer | 140,238 |
| Thief Tools | 119,252 |