Homeworld 2 : FunctionaddSquadron
Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
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.
<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:
 Comments [Hide comments/form]
Is the bHyperspace like hiding units in SP until the trigger is lit and they come out? (reinforcements)
-- pcp01943894pcs.canton01.mi.comcast.net (2005-08-26 18:32:45)
Yes. If this flag is set, you will have to use scripting in order to make them exit hyperspace.
-- MiKail (2005-09-01 12:29:46)
:: ::
Hide Download Bar
Ctrl + Shift + Z = Show/Hide Download Bar
Downloads
Download Manager (S3)
Clear
Left Click: Clear All Finished
Right Click: Undo last clear
100%
Download History
Download list is empty
FunctionAddShipAbility.html
100%
--:--
498 KB
-.--
FunctionAddShipAbility.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionAddShipAbility.html
Status:
498 KB / 498 KB ( -.-- )
File Size:
498 KB
Virus scan:
Time Start:
2019.08.20 - 18:27:44
Time to Complete:
00:01
Time Left:
--:--
Percent Done:
100%
Average Speed:
477 KB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop
FunctionAddShipMultiplier.html
100%
--:--
509 KB
-.--
FunctionAddShipMultiplier.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionAddShipMultiplier.html
Status:
509 KB / 509 KB ( -.-- )
File Size:
509 KB
Virus scan:
Time Start:
2019.08.20 - 18:28:45
Time to Complete:
00:01
Time Left:
--:--
Percent Done:
100%
Average Speed:
521 KB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop