Distance-to-center

From FreeSpace Wiki
Revision as of 01:54, 21 March 2021 by Goober5000 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.)