v0.13.8

UnitInRange

functionimplementedavailable in: camelot

Returns true if the unit is within 40 yards range (25 yards for Evokers).

signaturewowlua
function UnitInRange(    unit: string): (boolean, boolean)

Parameters

nametype
unitstring

Returns

#nametypedescription
1inRangebooleantrue if the unit is within 40 (25 for Evokers) yards of the player
2checkedRangebooleantrue 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 ↗.