{"name":"allGroups","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","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","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","params":[],"returns":{"type":"Array of Groups","type_expr":"Array<Group>"},"form":"nullary"}],"examples":[{"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;"]}],"see_also":["group","groups","units","allCurators","allDead","playableUnits","switchableUnits","vehicles","allUnitsUAV"]}