Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API UnitIsTappedByPlayer

Last wiki revision 2021-09-18

Returns whether a unit is tappe by the player. isTapped = UnitIsTappedByPlayer("unit")

  • unit : String (unitId) - unit to query, e.g. "target"
  • isTapped: Flag - 1 if the unit is tapped by current player, nil otherwise.

You can use this function in conjunction with and in order to check whether the player will receive any benefit from killing the unit: if UnitIsTapped("target") and not (UnitIsTappedByPlayer("target") or UnitIsTappedByAllThreatList("target")) then -- You'll get no quest credit/loot if you kill this unit end

Source

https://warcraft.wiki.gg/wiki/API_UnitIsTappedByPlayer · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.