Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API InspectUnit
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<br>{{framexml}} Inspects the specified / selected "unit". InspectUnit("unit") == Parameters == === Arguments === :("unit") :;unit : String - The [[API TYPE UnitId|UnitId]] to select as a target. === Returns === :nil === Example === if (UnitPlayerControlled("target") and CheckInteractDistance("target", 1) and not<br>UnitIsUnit("player", "target")) then InspectUnit("target") end == Info == === UnitPlayerControlled("unit") === :[[API UnitPlayerControlled|UnitPlayerControlled("unit")]] - Returns true if the specified unit is controlled by a player, false otherwise. === UnitIsUnit("unit", "otherunit") === :[[API UnitIsUnit|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) === :[[API CheckInteractDistance|CheckInteractDistance]]("[[API TYPE UnitId|unit]]",distIndex) - Returns true if you are in range of the specified unit to perform the action specified by distIndex. Otherwise, returns false.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Framexml
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)