createGroup: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Command " to "{{RV|type=command ") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *PARAMETER[0-9]{1,3} *= * " to " ") |
||
Line 31: | Line 31: | ||
|s2= [[createGroup]] [side, deleteWhenEmpty] {{Since|arma3|1.67|y}} | |s2= [[createGroup]] [side, deleteWhenEmpty] {{Since|arma3|1.67|y}} | ||
|p21= [side, deleteWhenEmpty]: [[Array]] | |p21= [side, deleteWhenEmpty]: [[Array]] | ||
|p22= side: [[Side]] | |p22= side: [[Side]] | ||
|p23= deleteWhenEmpty: [[Boolean]] - (Optional, default [[false]]) [[true]] to delete [[deleteGroupWhenEmpty|delete the group when empty]]. | |p23= deleteWhenEmpty: [[Boolean]] - (Optional, default [[false]]) [[true]] to delete [[deleteGroupWhenEmpty|delete the group when empty]]. | ||
* If set to [[true]], ''deleteWhenEmpty'' forces a group to get deleted when empty - it does '''not''' prevent its deletion by other commands when set to [[false]]. | * If set to [[true]], ''deleteWhenEmpty'' forces a group to get deleted when empty - it does '''not''' prevent its deletion by other commands when set to [[false]]. | ||
* Deletion may take up to a minute after the last unit is removed. | * Deletion may take up to a minute after the last unit is removed. | ||
|r2= [[Group]] | |r2= [[Group]] |
Revision as of 18:13, 29 January 2021
Description
- Description:
- Description needed
- Groups:
- Groups
Syntax
- Syntax:
- Syntax needed
- Parameters:
- side: Side
- Return Value:
- Return value needed
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:
- See also needed
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.