Inspect.Unit.Detail

Provides detailed information about a unit.

Usage:

detail = Inspect.Unit.Detail(unit)
details = Inspect.Unit.Detail(units)
ParameterTypeDatatypeDescription
unitparameterunitA unit, in either unit ID or unit specifier format.
unitsparametertableA table containing units to inspect.
detailresulttableDetail table for a single unit.
detailsresulttableDetail tables for all requested units. The key is the unit ID or unit specifier, the value is the unit's detail table.
members
absorb The unit's damage absorption.
afk Signals that the unit is AFK. Provided only for the player and the player's groupmembers.
aggro Signals that this unit is being attacked. Provided only for groupmembers.
alliance The unit's alliance. "defiant", "guardian", or nil.
availability The unit's current availability. See Utility.Unit.Availability() for details.
blocked Signals that this unit is not in line of sight. Provided only for groupmembers.
calling The unit's calling. May be "mage", "rogue", "cleric", or "warrior".
charge The unit's charge. Provided only for the player.
chargeMax The unit's maximum charge. Provided only for the player.
combat The unit's combat status.
combo The unit's combo points. Provided only for the player.
coordX The unit's current X coordinate.
coordY The unit's current Y coordinate.
coordZ The unit's current Z coordinate.
energy The unit's energy.
energyMax The unit's maximum energy.
factionId The unit's faction ID.
guaranteedLoot Signals that this unit guarantees loot on death. Shown in the user interface as a diamond above the portrait.
guild The unit's guild.
health The unit's health.
healthCap The unit's capped maximum health.
healthMax The unit's maximum health.
id The ID of the requested element.
level The unit's level. May be "??" if the unit is hostile and very high-level.
locationName The name of the unit's location. Provided only for friendly players.
loot The Unit ID that has looting rights to this corpse.
mana The unit's mana.
manaMax The unit's maximum mana.
mark The mark on this unit.
mentoring The unit's mentoring status.
name The unit's name.
nameSecondary The unit's secondary name.
offline Signals that the unit is offline. Provided only for the player's groupmembers.
planar The unit's available planar charges. Provided only for the player or groupmembers.
planarMax The unit's maximum planar charges. Provided only for the player or groupmembers.
player Signals that the unit is a player, not an NPC.
power The unit's power.
publicSize The unit's current public group size. nil if the group is not public. Provided only for friendly players.
pvp The unit's PvP flag.
race The unit's race. Provided only for players.
raceName The unit's race, localized. Provided only for players.
radius The unit's radius.
ready The unit's readycheck status.
relation The unit's relation to you. May be "hostile" or "friendly". Neutral targets will not have this member.
role The unit's role. May be "tank", "heal", "dps", "support", or nil. Provided only for the player and the player's groupmembers.
tag The unit's tags, space-separated.
tagName The unit's tags, localized.
tagged The unit's tagged status. true if the unit has been tagged by you, "other" if the unit has been tagged by someone else.
tier The unit's difficulty tier. nil, "group", or "raid".
titlePrefixId The unit's title prefix ID.
titlePrefixName The unit's localized title prefix.
titleSuffixId The unit's title suffix ID.
titleSuffixName The unit's localized title suffix.
type The unit type ID.
vitality The unit's vitality. Provided only for the player or groupmembers.
warfront Signals that the unit has temporarily left the group to join a warfront. Provided only for groupmembers.
zone The ID of the unit's current zone.