Difference between revisions of "Get-object-x"

From FreeSpace Wiki
Jump to: navigation, search
(New page: get-object-x get-object-x Returns the absolute X coordinate of a set of coordinates relative to a particular object (or object's subsystem). The input coordinates are the...)
 
(remove a comment that hasn't been true for years, if ever)
 
Line 9: Line 9:
 
     4: The relative Y coordinate (optional).
 
     4: The relative Y coordinate (optional).
 
     5: The relative Z coordinate (optional).
 
     5: The relative Z coordinate (optional).
===Comments===
+
 
The get-object-x/y/z SEXPs do not currently work well with negative numbers. When using them, shift the play area so it is positive on all axes to avoid problems.
 
 
[[Category:SCP SEXPs]]
 
[[Category:SCP SEXPs]]

Latest revision as of 21:58, 20 October 2025

get-object-x
    get-object-x
    Returns the absolute X coordinate of a set of coordinates relative to a particular object (or object's subsystem). The input  
    coordinates are the coordinates relative to the object's position and orientation. If no input coordinates are specified,
    the coordinate returned is the coordinate of the object (or object's subsystem) itself. Takes 1 to 5 arguments...
    1: The name of a ship, wing, or waypoint.
    2: A ship subsystem (or "" if the first argument is not a ship - optional).
    3: The relative X coordinate (optional).
    4: The relative Y coordinate (optional).
    5: The relative Z coordinate (optional).