{"name":"groupSelectedUnits","operator":null,"title":"groupSelectedUnits","type":"command","url":"https://community.bistudio.com/wiki/groupSelectedUnits","revid":377896,"updated":"2026-01-05T17:44:14Z","groups":["Interaction"],"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":"Returns selected units in source group for normal commanding mode (individual units). For the High Command equivalent, see hcSelected.","syntaxes":[{"syntax":"groupSelectedUnits unit","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"}],"returns":{"type":"Array of Objects","types":["Array","Object"],"description":null,"text":"Array of Objects"},"form":"unary","operator":null,"left":null,"right":{"text":"unit","types":["Object"]}}],"examples":[{"text":"```sqf\n_selectedUnits = groupSelectedUnits player;\n```","code":["_selectedUnits = groupSelectedUnits player;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["groupSelectUnit"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Interaction","Introduced with Arma 2 version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}