allGroups: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1= Groups | |gr1= Groups | ||
|gr2= Object Detection | |gr2= Object Detection | ||
| Return a list of all groups created on the following sides [[east]], [[west]], [[resistance]]/[[independent]] and [[civilian]] only. Does not contain groups of [[sideLogic]]. | | Return a list of all groups created on the following sides [[east]], [[west]], [[resistance]]/[[independent]] and [[civilian]] only. Does not contain groups of [[sideLogic]]. | ||
| '''allGroups''' | | '''allGroups''' | ||
|p1 | |p1= | ||
|p2 | |p2= | ||
|p3 | |p3= | ||
| [[Array]] | | [[Array]] | ||
|x1= <code>{([[leader]] _x) [[sideChat]] "Go ! Go ! Go !"} [[forEach]] [[allGroups]];</code> | |x1= <code>{([[leader]] _x) [[sideChat]] "Go ! Go ! Go !"} [[forEach]] [[allGroups]];</code> | ||
|x2= All groups with players: <code>[[private]] _allGroupsWithPlayers = []; | |x2= All groups with players: <code>[[private]] _allGroupsWithPlayers = []; | ||
{_allGroupsWithPlayers [[pushBackUnique]] [[group]] _x} [[forEach]] [[allPlayers]];</code> | {_allGroupsWithPlayers [[pushBackUnique]] [[group]] _x} [[forEach]] [[allPlayers]];</code> | ||
|[[group]], [[units]], [[allCurators]], [[allDead]], [[playableUnits]], [[switchableUnits]], [[vehicles]], [[allUnitsUAV]] | |[[group]], [[units]], [[allCurators]], [[allDead]], [[playableUnits]], [[switchableUnits]], [[vehicles]], [[allUnitsUAV]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:02, 18 January 2021
Description
- Description:
- Return a list of all groups created on the following sides east, west, resistance/independent and civilian only. Does not contain groups of sideLogic.
- Groups:
- GroupsObject Detection
Syntax
- Syntax:
- allGroups
- Return Value:
- Array
Examples
- Example 1:
{(leader _x) sideChat "Go ! Go ! Go !"} forEach allGroups;
- Example 2:
- All groups with players:
private _allGroupsWithPlayers = []; {_allGroupsWithPlayers pushBackUnique group _x} forEach allPlayers;
Additional Information
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