AreUnitsEqual

From ESOUI Wiki

Jump to: navigation, search

This function tests whether two unit tags refer to the same unit. For example, you can compare "player" to "reticleover" to detect whether the targeting reticle is over the player-character.

Arguments

unitTag
A string representing a unit tag.
secondUnitTag
A string representing another unit tag.

Example

local localPlayerIsTarget = AreUnitsEqual("player", "reticleover")

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox