allGroups: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
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|Comments=
{{Command


| arma2 |Game name=
| arma2


|1.00|Game version=
|1.00


|gr1= Groups |GROUP1=
|gr1= Groups


|gr2= Object Detection |GROUP2=
|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]]. |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]].


| '''allGroups''' |SYNTAX=
| '''allGroups'''


|p1= |PARAMETER1=  
|p1=


|p2= |PARAMETER2=  
|p2=


|p3= |PARAMETER3=  
|p3=


| [[Array]] |RETURNVALUE=
| [[Array]]




|x1= <code>{([[leader]] _x) [[sideChat]] "Go ! Go ! Go !"} [[forEach]] [[allGroups]];</code>|EXAMPLE1=
|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>|EXAMPLE2=
{_allGroupsWithPlayers [[pushBackUnique]] [[group]] _x} [[forEach]] [[allPlayers]];</code>




|[[group]], [[units]], [[allCurators]], [[allDead]], [[playableUnits]], [[switchableUnits]], [[vehicles]], [[allUnitsUAV]] |SEEALSO=
|[[group]], [[units]], [[allCurators]], [[allDead]], [[playableUnits]], [[switchableUnits]], [[vehicles]], [[allUnitsUAV]]


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  

Revision as of 00:02, 18 January 2021

Hover & click on the images for description

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

See also:
groupunitsallCuratorsallDeadplayableUnitsswitchableUnitsvehiclesallUnitsUAV

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

Notes

Bottom Section