Skip to content

Function; addSquadron

Michael Horvath edited this page Aug 30, 2020 · 4 revisions

addSquadron(<sSquadronName>, <sSquadronType>, <tPosition>, <iPlayerIndex>, <tRotation>, <iNumberShips>, <bHyperspace>)

Description

Adds a ship or squadron to a player's fleet. Only used in ".level" files.

Example

addSquadron("Mommy", "Hgn_Mothership", {1614, 141, 5229,}, 0, {0, 0, 0,}, 0, 1)

Arguments

<sSquadronName>: the name of the squadron being added. Note: Can be anything you want. It is for future use with addToSOBGroup.
<sSquadronType>: the type of the squadron being added.
<tPosition>: a table containing the X, Y, and Z coordinates (in that order).
<iPlayerIndex>: the index number of the squadron's owner, starting with 0 instead of 1.
<tRotation>: a table containing the X, Y, and Z rotation angles (in that order; in degrees).
<iNumberShips>: the number of ships spawned in the squadron. No effect on single ships.
<bHyperspace>: determines if the squadron exists in hyperspace. 1 = in hyperspace, 0 = in real space.

Scope

Related Pages

Function Reference

Malignus's Mapping Tutorial

Comments

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial

Clone this wiki locally