UnitDetailedThreatSituation
functionimplementedavailable in: camelot
Returns detailed info for the threat status of one unit against another.
function UnitDetailedThreatSituation( unit: string, mobGUID: string): (boolean?, number?, number?, number?, number?)Parameters
| name | type | description |
|---|---|---|
unit | string | The player or pet whose threat to request. |
mobGUID | string | The NPC whose threat table to query. |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | isTanking | boolean? | Returns true if the unit is the primary threat target of the mobUnit, returns false otherwise. |
| 2 | status | number? | Threat status of the unit on the mobUnit. |
| 3 | scaledPercentage | number? | The unit's threat percentage against mobUnit. At 100% the unit will become the primary target. This value is also scaled the closer the unit is to the mobUnit. |
| 4 | rawPercentage | number? | The unit's threat percentage against mobUnit relative to the threat of mobUnit's primary target. Can be greater than 100, up to 255. Stops updating when you become the primary target. |
| 5 | rawThreat | number? |
Blizzard's documentation says it may return nothing.
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Unit system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.