Difference between revisions of "Distance-to-center"

From FreeSpace Wiki
Jump to: navigation, search
(Created page with " 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 e...")
 
m
 
Line 8: Line 8:
  
 
==Comments==
 
==Comments==
*Replaces [[distance]] in FreeSpace Open. The two SEXPs are identical in function.
+
*Replaces [[distance]] in FreeSpace Open. The two SEXPs are similar in function, but not identical.  (See [[distance]] for more information.)
  
 
[[Category:SCP SEXPs]]
 
[[Category:SCP SEXPs]]

Latest revision as of 01:54, 21 March 2021

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.)