createGroup: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| arma1 \|1.00 \|([^g]|g[^a])" to "| ofpe | 1.00 |game2= arma1 |version2= 1.00 |game3= arma2 |version3= 1.00 |game4= arma2oa |version4= 1.50 |game5= tkoh |version5= 1.00 |game6= arma3 |version6= 0.50 |$1") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * \|p1=" to " |s1= $1 |p1=") |
||
Line 37: | Line 37: | ||
}} | }} | ||
| | |s1= [[createGroup]] side | ||
|p1= side: [[Side]] | |p1= side: [[Side]] |
Revision as of 22:58, 12 June 2021
Description
- Description:
- Description needed
- Groups:
- Groups
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 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
- 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.
Categories:
- Stubs
- Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Groups
- Scripting Commands: Global Effect
- Operation Flashpoint: Elite: Scripting Commands