Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns true if the player can inspect the unit.
canInspect = CanInspect(unit [, showError])
Arguments[]
- unit
- string : UnitId
- showError
- boolean? - If true, the function will display an error message ("You can't inspect that unit") if you cannot inspect the specified unit.
Returns[]
- canInspect
- boolean - True if you can inspect the specified unit
Details[]
- You cannot inspect NPCs, nor PvP-enabled hostile players in PvP-enabled locations.