Group

From Bohemia Interactive Community
Revision as of 23:46, 5 September 2022 by Lou Montana (talk | contribs) (Fix value after many tests in OFP, ArmA, Arma 2, Arma 3!)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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
Max. No. of Units per Group 12 ? 10000+