Ship-create

From FreeSpace Wiki
Revision as of 22:21, 19 March 2009 by Mobius (talk | contribs) (Very limited spelling changes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.