From FreeSpace Wiki
Distance-To-Center (Status operator) Returns the distance between the centers of two objects. These can be ships, wings, or waypoints. When a wing or team is given (for either argument), the result will be the closest distance. Returns a numeric value. Takes 2 arguments... 1: The name of one of the objects. 2: The name of the other object.