ESODecoded

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 Enhancedits 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
Azurah - Interface Enhanced1,462,318
Event Tracker249,931
Wykkyd Full Immersion223,536
Lykeion's AutoLoot+177,775
Unboxer140,238
Thief Tools119,252