UnitInRange
functionimplementedavailable in: camelot
Returns true if the unit is within 40 yards range (25 yards for Evokers).
function UnitInRange( unit: string): (boolean, boolean)Parameters
| name | type |
|---|---|
unit | string |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | inRange | boolean | true if the unit is within 40 (25 for Evokers) yards of the player |
| 2 | checkedRange | boolean | true if a range check was actually performed; false if the information about distance to the queried unit is unavailable. |
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Unit system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.