Returns the squared distance to a unit in the player's group. The distance returned appears to work from anywhere (even across continents and instance boundaries, although the answer is of dubious value).
See also Map functions.
unit- A unit in the player's party or raid (
distanceSquared- Distance to that unit, squared (
checkedDistance- true if the distance result is valid, false otherwise (eg. unit not found) (