Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
This function is restricted.
|
Returns true if the unit is within 40 yards range (25 yards for Evokers).
inRange, checkedRange = UnitInRange(unit)
Arguments[]
- unit
- string : UnitToken
Returns[]
- inRange
- boolean - true if the unit is within 40 (25 for Evokers) yards of the player
- checkedRange
- boolean - true if a range check was actually performed; false if the information about distance to the queried unit is unavailable.
Patch changes[]
Patch 5.0.4 (2012-08-28): Added checkedRange
return value.