API UnitDistanceSquared

Usage
Returns the squared distance to a unit in your group

distanceSquared, checkedDistance = UnitDistanceSquared("unit")

Arguments

 * unit : String - The unitId for the player in your group

Returns

 * distanceSquared : Number - the squared distance to that unit
 * checkedDistance : Boolean - true if the distance result is valid, false otherwise (eg. unit not found or not in your group)