WoW:API InspectUnit: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Move page script moved page API InspectUnit to API InspectUnit without leaving a redirect) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{framexml}} | <br>{{framexml}} | ||
Inspects the specified / selected "unit". | Inspects the specified / selected "unit". |
Latest revision as of 04:46, 15 August 2023
← WoW API < InspectUnit
Inspects the specified / selected "unit".
InspectUnit("unit")
Parameters[edit]
Arguments[edit]
- ("unit")
- unit
- String - The UnitId to select as a target.
Returns[edit]
- nil
Example[edit]
if (UnitPlayerControlled("target") and CheckInteractDistance("target", 1) and not
UnitIsUnit("player", "target")) then InspectUnit("target") end
Info[edit]
UnitPlayerControlled("unit")[edit]
- UnitPlayerControlled("unit") - Returns true if the specified unit is controlled by a player, false otherwise.
UnitIsUnit("unit", "otherunit")[edit]
- 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)[edit]
- CheckInteractDistance("unit",distIndex) - Returns true if you are in range of the specified unit to perform the action specified by distIndex. Otherwise, returns false.