Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
InspectUnit - Documentation by VelvetPaw

Inspects the specified / selected "unit".

InspectUnit("unit")

Parameters

Arguments

("unit")
unit
String - The UnitId to select as a target.

Returns

nil

Example

if (UnitPlayerControlled("target") and CheckInteractDistance("target", 1) and not
UnitIsUnit("player", "target")) then InspectUnit("target") end

Info

UnitPlayerControlled("unit")

UnitPlayerControlled("unit") - Returns true if the specified unit is controlled by a player, false otherwise.

UnitIsUnit("unit", "otherunit")

UnitIsUnit("unit", "otherUnit") - Returns true if the two specified units refer to the same unit (e.g., "player" and "target" can refer to the same unit), false otherwise.

CheckInteractDistance("unit", distIndex)

CheckInteractDistance("unit",distIndex) - Returns true if you are in range of the specified unit to perform the action specified by distIndex. Otherwise, returns false.