createGroup: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma1 | | arma1 | ||
|1.00 | |1.00 | ||
|gr1= Groups | |gr1= Groups | ||
|eff= global | |eff= global | ||
| Creates a new [[Group]] for the given [[Side]]. | | Creates a new [[Group]] for the given [[Side]]. | ||
Line 22: | Line 22: | ||
* Usage of [[createCenter]] in {{arma3}} is not required anymore as all centers are automatically created. | * Usage of [[createCenter]] in {{arma3}} is not required anymore as all centers are automatically created. | ||
}} | }} | ||
| | | [[createGroup]] side | ||
| [[ | |p1= side: [[Side]] | ||
|s2= [[createGroup]] [side, deleteWhenEmpty] {{Since|arma3|1.67|y}} | | [[Group]] | ||
|s2= [[createGroup]] [side, deleteWhenEmpty] {{Since|arma3|1.67|y}} | |||
|p21= [side, deleteWhenEmpty]: [[Array]] |PARAMETER21= | |p21= [side, deleteWhenEmpty]: [[Array]] |PARAMETER21= | ||
Line 40: | Line 40: | ||
* Deletion may take up to a minute after the last unit is removed. |PARAMETER23= | * Deletion may take up to a minute after the last unit is removed. |PARAMETER23= | ||
|r2= [[Group]] | |r2= [[Group]] | ||
|x1= <code>[[private]] _group = [[createGroup]] [[east]];</code> | |x1= <code>[[private]] _group = [[createGroup]] [[east]];</code> | ||
|x2= <code>[[private]] _group = [[createGroup]] [<nowiki/>[[east]], [[true]]];</code> | |x2= <code>[[private]] _group = [[createGroup]] [<nowiki/>[[east]], [[true]]];</code> | ||
| [[deleteGroup]], [[deleteGroupWhenEmpty]], [[isGroupDeletedWhenEmpty]], [[group]], [[setGroupId]], [[groupID]], [[units]], [[groupFromNetId]], [[netId]], [[leader]], [[selectLeader]], [[join]], [[createCenter]], [[createUnit]], [[createVehicle]], [[Side]] | | [[deleteGroup]], [[deleteGroupWhenEmpty]], [[isGroupDeletedWhenEmpty]], [[group]], [[setGroupId]], [[groupID]], [[units]], [[groupFromNetId]], [[netId]], [[leader]], [[selectLeader]], [[join]], [[createCenter]], [[createUnit]], [[createVehicle]], [[Side]] | ||
}} | }} | ||
Revision as of 00:13, 18 January 2021
Description
Syntax
- Syntax:
- createGroup side
- Parameters:
- side: Side
- Return Value:
- Group
Alternative Syntax
- Syntax:
- createGroup [side, deleteWhenEmpty] Template:Since
- Parameters:
- [side, deleteWhenEmpty]: Array
- side: Side
- deleteWhenEmpty: Boolean - (Optional, default false) true to delete delete the group when empty.
- Return Value:
- Group
Examples
- Example 1:
private _group = createGroup east;
- Example 2:
private _group = createGroup [east, true];
Additional Information
- See also:
- deleteGroupdeleteGroupWhenEmptyisGroupDeletedWhenEmptygroupsetGroupIdgroupIDunitsgroupFromNetIdnetIdleaderselectLeaderjoincreateCentercreateUnitcreateVehicleSide
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
- Posted on July 10, 2007
- 5133p39
- In Armed Assault, empty groups are not automatically deleted - if you created 144 groups, you will not be able to create new group even if all units in all those groups died, because all the 144 groups still exists - you will have to delete some groups manually.
- Posted on January 04, 2011
- kju
- A group created with createGroup will get a waypoint at [0,0,0]. When you use createUnit to fill it with units, it will get an additional waypoint at the position the first unit is created. This new waypoint will also be set as currentWaypoint. However keep these two waypoints in mind when you do some scripting involving this groups' waypoints.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Groups
- Scripting Commands: Global Effect
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands