{"name":"allGroups","operator":null,"title":"allGroups","type":"command","url":"https://community.bistudio.com/wiki/allGroups","revid":377010,"updated":"2026-01-01T08:18:18Z","groups":["Groups","Object Detection"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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.","syntaxes":[{"syntax":"allGroups","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"Array of Groups","types":["Array","Group"],"description":null,"text":"Array of Groups"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\n{ leader _x sideChat \"Go ! Go ! Go !\" } forEach allGroups;\n```","code":["{ leader _x sideChat \"Go ! Go ! Go !\" } forEach allGroups;"]},{"text":"All groups with players:\n\n```sqf\nprivate _allGroupsWithPlayers = [];\n{ _allGroupsWithPlayers pushBackUnique group _x } forEach allPlayers;\n```","code":["private _allGroupsWithPlayers = [];\n{ _allGroupsWithPlayers pushBackUnique group _x } forEach allPlayers;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["group","groups","units","allCurators","allDead","playableUnits","switchableUnits","vehicles","allUnitsUAV"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Groups","Command Group: Object Detection","Introduced with Arma 2 version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}