ESODecoded

GetUnitReaction

ESO Lua API function — used by 35 of the 3,030 addons we indexed (combined 2,505,571 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetUnitReaction(string unitTag)

Returns: unitReaction

Real usage — from Foundry Tactical Combat (FTC)

  local difficultyNone = GetUnitDifficulty(unitTag) == MONSTER_DIFFICULTY_NONE
  local friendlyOrNeutral = (GetUnitReaction(unitTag) == UNIT_REACTION_NEUTRAL or GetUnitReaction(unitTag) == UNIT_REACTION_FRIENDLY)
  local isCritter = (isBase

Short excerpt from the shipping addon Foundry Tactical Combat (FTC)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

AddonTotal downloads
Foundry Tactical Combat (FTC)1,097,601
Combat Metronome (GCD Tracker)483,791
Bandits Companions and Pets192,393
Combat Reticle183,846
More Target Information83,959
RAETIA InfoHub55,668