{"name":"Group","title":"Group","type":"topic","url":"https://community.bistudio.com/wiki/Group","revid":330390,"updated":"2022-09-05T21:46:56Z","aliases":[],"markdown":"A group is its own data type in the scripting language. All units belong to a group. If units are linked together in the editor, they are all part of the same group. If a unit is not linked to anyone else, then it belongs to its own group.\n\n- The AI makes many decisions as an entire group, instead of on an individual unit level. For example, behavior, combat mode, and waypoints are decided on a group, not an individual level.\n- Note that empty objects do not belong to a group. Nor do empty vehicles.\n- To get the group that a unit belongs to, use the group command.\n- To get the unit that currently leads a group, use the leader command.\n- To get an array of units that are in a group, use the units command.\n\n|  |  |  |  |  |  |  |  |  |\n|---|---|---|---|---|---|---|---|---|\n| Game | Operation Flashpoint v1.00 | Operation Flashpoint: Elite v1.00 | Armed Assault v1.00 | Arma 2 v1.00 | Arma 2: Operation Arrowhead v1.50 | Take On Helicopters v1.00 | Arma 3 v1.00 | Arma 3 v1.68 |\n| Max. No. of Groups per Side | 63 | 144 | 288 |  |  |  |  |  |\n| Max. No. of Units per Group | 12 | ? | 10000+ |  |  |  |  |  |","sections":[{"heading":null,"level":1,"markdown":"A group is its own data type in the scripting language. All units belong to a group. If units are linked together in the editor, they are all part of the same group. If a unit is not linked to anyone else, then it belongs to its own group.\n\n- The AI makes many decisions as an entire group, instead of on an individual unit level. For example, behavior, combat mode, and waypoints are decided on a group, not an individual level.\n- Note that empty objects do not belong to a group. Nor do empty vehicles.\n- To get the group that a unit belongs to, use the group command.\n- To get the unit that currently leads a group, use the leader command.\n- To get an array of units that are in a group, use the units command.\n\n|  |  |  |  |  |  |  |  |  |\n|---|---|---|---|---|---|---|---|---|\n| Game | Operation Flashpoint v1.00 | Operation Flashpoint: Elite v1.00 | Armed Assault v1.00 | Arma 2 v1.00 | Arma 2: Operation Arrowhead v1.50 | Take On Helicopters v1.00 | Arma 3 v1.00 | Arma 3 v1.68 |\n| Max. No. of Groups per Side | 63 | 144 | 288 |  |  |  |  |  |\n| Max. No. of Units per Group | 12 | ? | 10000+ |  |  |  |  |  |"}],"categories":["Data Types"],"groups":["Data Types"]}