Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API UnitThreatSituation

Last wiki revision 2022-09-29

Returns the threat status of the specified unit to another unit. status = UnitThreatSituation(unit [, mobUnit])

  • unit: : UnitId - The player or pet whose threat to request.
  • mobUnit: : UnitId - The NPC whose threat table to query.
  • If omitted, returned values reflect whichever NPC unit the player unit has the highest threat against.
  • status: - The threat status of the unit on the mobUnit. "High threat" means a unit has 100% threat or higher, "Primary Target" means the unit is the current target of the mob.
  • Threat information for a pair of unit and mobUnit is only returned if the unit has threat against the mobUnit in question. In addition, no threat data is provided if a unit's pet is attacking an NPC but the unit himself has taken no action, even though the pet has threat against the NPC.)

Prints your threat status for your target if it exists. If the target does not exist or the player is not on the target's threat table, prints your threat status for any other units.

Source

https://warcraft.wiki.gg/wiki/API_UnitThreatSituation · 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.