API InspectUnit

104,672pages on
this wiki
Add New Page
Talk0 Share

WoW API < InspectUnit

Inspects the specified / selected "unit".


Parameters Edit

Arguments Edit

String - The UnitId to select as a target.

Returns Edit


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.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki