Homeworld 2 : FunctionaddSquadron
Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
Most recent edit on 2007-01-10 01:52:39 by MiKail

Additions:
<tPosition>: a table containing the X, Y, and Z coordinates (in that order).
<tRotation>: a table containing the X, Y, and Z rotation angles (in that order; in degrees).

Deletions:
<tPosition>: a table containing the X, Y, and Z coordinates.
<tRotation>: a table containing the X, Y, and Z rotation angles (in degrees).




Edited on 2006-12-10 05:51:09 by SunTzu [Updated to make Mostly_Harmless discovery more visible]

Additions:
<iNumberShips>: the number of ships spawned in the squadron. No effect on single ships.

Deletions:
<iNumberShips>: dunno. The number of ships spawned in the squadron. No effect on single ships.



Edited on 2006-12-10 05:49:57 by SunTzu [Updated to make Mostly_Harmless' discovery more visible.]

Additions:
addSquadron(<sSquadronName>, <sSquadronType>, <tPosition>, <iPlayerIndex>, <tRotation>, <iNumberShips>, <bHyperspace>)
<iNumberShips>: dunno. The number of ships spawned in the squadron. No effect on single ships.


Deletions:
addSquadron(<sSquadronName>, <sSquadronType>, <tPosition>, <iPlayerIndex>, <tRotation>, ?, <bHyperspace>)
?: dunno. Reduces flight group to Nuumber entered. No effect on single ships.




Edited on 2006-10-26 20:04:16 by Mostly_harmless

Additions:
?: dunno. Reduces flight group to Nuumber entered. No effect on single ships.

Deletions:
?: dunno.



Edited on 2006-04-30 02:46:32 by MiKail [Y and Z were reversed]

Additions:
<tPosition>: a table containing the X, Y, and Z coordinates.
<tRotation>: a table containing the X, Y, and Z rotation angles (in degrees).


Deletions:
<tPosition>: a table containing the X, Z, and Y coordinates.
<tRotation>: a table containing the X, Z, and Y rotation angles (in degrees).




Edited on 2006-04-27 10:08:11 by SunTzu [added some clarifications]

Additions:
<sSquadronName>: the name of the squadron being added. Note: Can be anything you want. It is for future use with addToSOBGroup.
<bHyperspace>: determines if the squadron exists in hyperspace. 1 = in hyperspace, 0 = in real space.


Deletions:
<sSquadronName>: the name of the squadron being added. Can be anything you want.
<bHyperspace>: determines if the squadron exists in hyperspace. 1 = yes, 0 = no.




Edited on 2005-07-06 17:12:38 by MiKail

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

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



Edited on 2004-02-22 20:52:25 by MiKail

Additions:
Scope
  • Level

    Deletions:
    - Level Functions



    Edited on 2004-02-21 02:59:31 by MiKail

    Additions:
    addSquadron(<sSquadronName>, <sSquadronType>, <tPosition>, <iPlayerIndex>, <tRotation>, ?, <bHyperspace>)

    Deletions:
    addSquadron(<sSquadronName>, <sSquadronType>, <tPosition>, <iPlayerIndex>, <tRotation>, ?, <bHyperspace>);



    Edited on 2004-02-21 02:59:16 by MiKail

    Additions:
    addSquadron(<sSquadronName>, <sSquadronType>, <tPosition>, <iPlayerIndex>, <tRotation>, ?, <bHyperspace>);

    Deletions:
    addSquadron(<sSquadronName>, <sSquadronType>, <tPosition>, <iPlayerIndex>, <tRotation> ?, <bHyperspace>);



    Edited on 2004-02-21 02:58:59 by MiKail

    No differences.


    Edited on 2004-02-21 02:58:12 by MiKail

    Additions:
    - Malignus's Mapping Tutorial



    Edited on 2004-02-21 02:55:59 by MiKail

    Additions:
    Related Pages:
  • Function Reference
  • Level Functions



    Edited on 2004-02-21 02:55:14 by MiKail

    Additions:
    <tPosition>: a table containing the X, Z, and Y coordinates. <tRotation>: a table containing the X, Z, and Y rotation angles (in degrees).
    <iPlayerIndex>: the index number of the squadron's owner.
    <bHyperspace>: determines if the squadron exists in hyperspace. 1 = yes, 0 = no.


    Deletions:
    <tPosition>: a table containing the coordinates of the ship's position.
    <tRotation>: a table containing the rotational angle of the ship (in degrees).
    <iPlayerIndex>: the player number of the squadron's owner.
    <bHyperspace>: should the added squadron exist in hyperspace (boolian)?




    Edited on 2004-02-21 02:51:14 by MiKail

    Additions:
    addSquadron(<sSquadronName>, <sSquadronType>, <tPosition>, <iPlayerIndex>, <tRotation> ?, <bHyperspace>);
    <tPosition>: a table containing the coordinates of the ship's position.
    <tRotation>: a table containing the rotational angle of the ship (in degrees).


    Deletions:
    addSquadron(<sSquadronName>, <sSquadronType>, {<fPosX>, <fPosZ>, <fPosY>}, <iPlayerIndex>, {<fRotX>, <fRotZ>, <fRotY>} ?, <bHyperspace>);
    <fPos*>: the coordinates of the ship's position.
    <fRot*>: the rotational angle of the ship (in degrees).




    Edited on 2004-02-09 15:48:56 by MiKail

    Additions:
    addSquadron(<sSquadronName>, <sSquadronType>, {<fPosX>, <fPosZ>, <fPosY>}, <iPlayerIndex>, {<fRotX>, <fRotZ>, <fRotY>} ?, <bHyperspace>);
    <bHyperspace>: should the added squadron exist in hyperspace (boolian)?


    Deletions:
    addSquadron(<sSquadronName>, <sSquadronType>, {<fPosX>, <fPosZ>, <fPosY>}, <iPlayerIndex>, {<fRotX>, <fRotZ>, <fRotY>} ?, ?);
    ?: dunno (boolian).




    Edited on 2004-02-09 13:21:27 by MiKail

    Additions:
    ?: dunno (boolian).



    Edited on 2004-02-09 13:20:53 by MiKail

    Additions:
    addSquadron("Mommy", "Hgn_Mothership", {1614, 141, 5229}, 0, {0, 0, 0}, 0, 1)
    <sSquadronName>: the name of the squadron being added. Can be anything you want.
    <sSquadronType>: the type of the squadron being added.


    Deletions:
    addSquadron("Hgn_MotherShip", "Hgn_Mothership", {1614, 141, 5229}, 0, {0, 0, 0}, 0, 1)
    <sSquadronName>: the string name of the squadron being added.
    <sSquadronType>: the string type of the squadron being added. May be the same as <sSquadronName>.




    Edited on 2004-02-09 08:57:11 by MiKail

    Additions:
    <fRot*>: the rotational angle of the ship (in degrees).

    Deletions:
    <fRot*>: the rotation of the ship.



    Oldest known version of this page was edited on 2004-02-09 08:50:35 by MiKail []
    Page view:
    addSquadron(<sSquadronName>, <sSquadronType>, {<fPosX>, <fPosZ>, <fPosY>}, <iPlayerIndex>, {<fRotX>, <fRotZ>, <fRotY>} ?, ?);

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

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

    Arguments
    <sSquadronName>: the string name of the squadron being added.
    <sSquadronType>: the string type of the squadron being added. May be the same as <sSquadronName>.
    <fPos*>: the coordinates of the ship's position.
    <fRot*>: the rotation of the ship.
    <iPlayerIndex>: the player number of the squadron's owner.
    ?: dunno.
    ?: dunno.
    :: ::