Distance-ship-subsystem

From FreeSpace Wiki
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.