Group: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Fix value after many tests in OFP, ArmA, Arma 2, Arma 3!) |
||
(8 intermediate revisions by 3 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 | 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. | |||
{| class="wikitable" style="text-align: center" | |||
! Game | |||
| {{GVI|ofp|1.00}} | |||
| {{GVI|ofpe|1.00}} | |||
| {{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 | |||
|- | |||
! Max. No. of Units per Group | |||
| 12 | |||
| ? | |||
| colspan="7" | 10000+ | |||
|} | |||
<!-- | |||
2022-09-05 tested: | |||
OFP: 12 | |||
A1: 6286+ | |||
A2: 26482+ | |||
A3: 33872+ | |||
--> | |||
[[Category: Data Types]] | [[Category: Data Types]] |
Latest revision as of 22:46, 5 September 2022
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 | 1.00 | 1.00 | 1.00 | 1.00 | 1.50 | 1.00 | 1.00 | 1.68 | |
---|---|---|---|---|---|---|---|---|---|
Max. No. of Groups per Side | 63 | 144 | 288 | ||||||
Max. No. of Units per Group | 12 | ? | 10000+ |