Lore archive · Warcraft Wiki, 2023 dump
API InspectUnit
Last wiki revision 2016-03-14
Inspects the specified / selected "unit".
InspectUnit("unit")
- ("unit")
- unit : String - The UnitId to select as a target.
- nil
if (UnitPlayerControlled("target") and CheckInteractDistance("target", 1) and not UnitIsUnit("player", "target")) then InspectUnit("target") end
- UnitPlayerControlled("unit") - Returns true if the specified unit is controlled by a player, false otherwise.
- 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) - Returns true if you are in range of the specified unit to perform the action specified by distIndex. Otherwise, returns false.
Source
https://warcraft.wiki.gg/wiki/API_InspectUnit · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.