Distance-ship-subsystem

From FreeSpace Wiki
Revision as of 03:21, 3 August 2007 by Shade (talk | contribs) (New page: distance-ship-subsystem Distance from ship subsystem (Status operator) Returns the distance between an object and a ship subsystem. The object can be either a ship, a wing, or a...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
distance-ship-subsystem
    Distance from ship subsystem (Status operator)
    Returns the distance between an object and a ship subsystem. The object can be either a ship, a wing, or a waypoint.

    Returns a numeric value. Takes 3 arguments...
    1: The name of the object.
    2: The name of the ship which houses the subsystem.
    3: The name of the subsystem.

Comments

One use for this SEXP is carrier landings, can be done by checking the distance to a fighterbay subsystem and then using end-mission to dump the mission to debriefing once the player is close enough.