Difference between revisions of "Distance"

From FreeSpace Wiki
Jump to: navigation, search
(New page: Distance (Status operator) Returns the distance between two objects. These objects can be either a ship, a wing, or a waypoint. Returns a numeric value. Takes 2 arguments... 1: The na...)
 
Line 1: Line 1:
Distance (Status operator)
+
Distance (Status operator)
Returns the distance between two objects.  These objects can be either a ship, a wing, or a waypoint.
+
        Returns the distance between two objects.  These objects can be either a ship, a wing, or a waypoint.
 
+
Returns a numeric value.  Takes 2 arguments...
Returns a numeric value.  Takes 2 arguments...
+
        1:     The name of one of the objects.
1: The name of one of the objects.
+
        2:     The name of the other object.
2: The name of the other object.
 
  
 
==Comments==
 
==Comments==
 
Commonly used to determine if a ship is close enough to a node to warp out.
 
Commonly used to determine if a ship is close enough to a node to warp out.
 
[[Category:Retail SEXPs]]
 
[[Category:Retail SEXPs]]

Revision as of 02:09, 25 April 2007

Distance (Status operator)
        Returns the distance between two objects.  These objects can be either a ship, a wing, or a waypoint.
Returns a numeric value.  Takes 2 arguments...
        1:     The name of one of the objects.
        2:     The name of the other object.

Comments

Commonly used to determine if a ship is close enough to a node to warp out.