Wikia

WoWWiki

API CanInspect

Talk0
98,461pages on
this wiki
Revision as of 22:33, June 24, 2010 by Starlightblunder (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)

Returns whether you can inspect a particular unit.

canInspect = CanInspect("unit"[, showError])

Contents

Arguments

unit 
String (unitId) - Unit to check inspectability of.
showError 
Flag - If true, the function will display an error message ("You can't inspect that unit") if you cannot inspect the specified unit.

Returns

canInspect 
Flag - 1 if you can inspect the specified unit, nil otherwise.

Details

  • You cannot inspect NPCs, nor PvP-enabled hostile players in PvP-enabled locations.
  • This function doesn't check whether you're close enough to the unit to inspect it; use CheckInteractDistance for that.

See also

Advertisement | Your ad here

Photos

Add a Photo
61,977photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki