Ship-create

From FreeSpace Wiki
Jump to: navigation, search
ship-create
    ship-create
    Creates a new ship
    Takes 5 to 8 arguments...
    1: Name of new ship (use "" for a default name)
    2: Class of new ship
    3: X position
    4: Y position
    5: Z position
    6: Pitch (optional)
    7: Bank (optional)
    8: Heading (optional)

Comments

For the best effect, use the argument list from a when-argument or every-time-argument based event to supply the names for the created ships. That way, it is possible to use SEXPs such as change-iff and add-goals to modify the behaviour of the created ships, something which is not possible with a name that is simply typed in - Neither FRED nor FSO will accept a SEXP call to a ship name that does not exist in the mission, but they will accept <argument> even if the actual names in the argument list do not yet exist.