Distance-to-center

From FreeSpace Wiki
Jump to: navigation, search
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.

Comments

  • Replaces distance in FreeSpace Open. The two SEXPs are similar in function, but not identical. (See distance for more information.)