API UnitDistanceSquared

Returns the squared distance to a unit in your group.
 distanceSquared, checkedDistance = UnitDistanceSquared(unit)
==Arguments==
:;unit: : UnitId - The unit id of a player in your group.
==Returns==
:;distanceSquared: - the squared distance to that unit
:;checkedDistance: - true if the distance result is valid, false otherwise (eg. unit not found or not in your group)
==Patch changes==