{"name":"hcSelected","title":"hcSelected","type":"command","url":"https://community.bistudio.com/wiki/hcSelected","revid":377155,"updated":"2026-01-01T10:38:13Z","groups":["High Command"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Returns selected groups in high command.","syntaxes":[{"syntax":"hcSelected unit","params":[{"name":"unit","type":"Object","description":"commander","type_expr":"Object"}],"returns":{"type":"Array of Groups","type_expr":"Array<Group>"},"form":"unary","right":{"text":"unit"}}],"examples":[{"code":["array = hcSelected unit;"]}],"see_also":["High Command","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","onHCGroupSelectionChanged"]}