ESODecoded

GetUnitAlliance

ESO Lua API function — used by 91 of the 3,030 addons we indexed (combined 22,473,688 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetUnitAlliance(string unitTag)

Returns: integer alliance

Real usage — from Destinations


  playerAlliance = GetUnitAlliance("player")
  Destinations.CSSV.settings.activateReloaduiButton = false

Short excerpt from the shipping addon Destinationsits 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
Destinations8,211,449
LibQuestData4,916,044
LibZone1,937,031
Item Set Browser1,893,031
Azurah - Interface Enhanced1,462,318
Votan's Improved Locations713,271