Set-object-position

From FreeSpace Wiki
Jump to: navigation, search
set-object-position
    set-object-position
    Instantaneously sets an object's spatial coordinates.Takes 4 arguments...
    1: The name of an object.
    2: The new X coordinate.
    3: The new Y coordinate.
    4: The new Z coordinate.

Comments

Intra-mission jumping is one use for this SEXP, and is quite straight-forward in its simplest implementation as all that's really needed is to set the new position of the player ship upon triggering. More advanced use would include use of cutscene SEXPs and warp-effect to display a more proper jump sequence, and perhaps even a limited choice of destinations for the player. Actual typing-in of coordinates by the player is theoretically possible, but is cumbersome and error-prone in the extreme.