createGroup: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 ") |
||
Line 77: | Line 77: | ||
|x2= <code>[[private]] _group = [[createGroup]] [<nowiki/>[[east]], [[true]]];</code> | |x2= <code>[[private]] _group = [[createGroup]] [<nowiki/>[[east]], [[true]]];</code> | ||
|seealso= [[deleteGroup]] [[deleteGroupWhenEmpty]] [[isGroupDeletedWhenEmpty]] [[group]] [[setGroupId]] [[groupID]] [[units]] [[groupFromNetId]] [[netId]] [[leader]] | |seealso= [[deleteGroup]] [[deleteGroupWhenEmpty]] [[isGroupDeletedWhenEmpty]] [[group]] [[setGroupId]] [[groupID]] [[units]] [[groupFromNetId]] [[netId]] [[leader]] [[selectLeader]], [[join]], [[createCenter]], [[createUnit]], [[createVehicle]], [[Side]] | ||
}} | }} | ||
Revision as of 15:51, 20 January 2022
Description
- Description:
- Creates a new Group for the given Side. Using this command if the group limit is reached will return grpNull.
Game 1.00 1.00 1.00 1.00 1.50 1.00 1.00 1.68 Group auto-deletion Group limit per side 63 144 288 - Groups:
- Groups
Syntax
- Syntax:
- createGroup side
- Parameters:
- side: Side
- Return Value:
- Group - grpNull if the group limit is reached
Alternative Syntax
- Syntax:
- createGroup [side, deleteWhenEmpty]
- Parameters:
- side: Side
- deleteWhenEmpty: Boolean - true to delete the group when empty.
- Return Value:
- Group - grpNull if the group limit is reached
Examples
- Example 1:
private _group = createGroup east;
- Example 2:
private _group = createGroup [east, true];
Additional Information
- See also:
- deleteGroup deleteGroupWhenEmpty isGroupDeletedWhenEmpty group setGroupId groupID units groupFromNetId netId leader selectLeaderjoincreateCentercreateUnitcreateVehicleSide
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 Jan 04, 2011 - 10:19 (UTC)
- 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:
- Scripting Commands
- Introduced with Operation Flashpoint: Elite version 1.00
- Operation Flashpoint: Elite: New Scripting Commands
- Operation Flashpoint: Elite: 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