UnitDistanceSquared
functionimplementedavailable in: camelot
Returns the squared distance to a unit in your group.
function UnitDistanceSquared( unit: string): (number, boolean)Parameters
| name | type | description |
|---|---|---|
unit | string | UnitId - The unit id of a player in your group. |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | distance | number | |
| 2 | checkedDistance | boolean | true if the distance result is valid, false otherwise (eg. unit not found or not in your group) |
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 ↗.