Group: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Clarified the definition of group. It is NOT an array of units! It is it's own data type.)
m (group count is per side not total)
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
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 isn't linked to anyone else, then it belongs to its own group.
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.


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.
* 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.
* Note that empty objects do not belong to a group. Nor do empty vehicles.
* To get the group that a unit belongs to, use the [[group]] command.
* To get the unit that currently leads a group, use the [[leader]] command.
* To get an array of units that are in a group, use the [[units]] command.


To get the group that a unit belongs to, use the [[group]] command.
{| class="wikitable" style="text-align: center"
 
! Game
To get the unit that currently leads a group, use the [[leader]] command.
| {{GVI|ofp|1.00}}
 
| {{GVI|ofpe|1.00}}
To get an array of units that are in a group, use the [[units]] command.
| {{GVI|arma1|1.00}}
| {{GVI|arma2|1.00}}
| {{GVI|arma2oa|1.50}}
| {{GVI|tkoh|1.00}}
| {{GVI|arma3|1.00}}
| {{GVI|arma3|1.68}}
|-
! Max. No. of Groups per side
| 63
| colspan="6" | 144
| 288
|}


[[Category: Data Types]]
[[Category: Data Types]]

Revision as of 10:00, 10 October 2021

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.

  • 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.
  • Note that empty objects do not belong to a group. Nor do empty vehicles.
  • To get the group that a unit belongs to, use the group command.
  • To get the unit that currently leads a group, use the leader command.
  • To get an array of units that are in a group, use the units command.
Game Logo A0.png1.00 ofpe logo.png1.00 Logo A1 black.png1.00 Logo A2.png1.00 A2 OA Logo.png1.50 tkoh logo small.png1.00 Arma 3 logo black.png1.00 Arma 3 logo black.png1.68
Max. No. of Groups per side 63 144 288