{"name":"groupId","title":"groupId","type":"command","url":"https://community.bistudio.com/wiki/groupId","revid":337336,"updated":"2023-01-18T11:45:01Z","groups":["Groups"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","locality":{"argument":"global"},"description":"Returns a group's name or a unit's group ID number.","syntaxes":[{"syntax":"groupId group","params":[{"name":"group","type":"Group","type_expr":"Group"}],"returns":{"type":"String","type_expr":"String","description":"the group's name (e.g \"Alpha Red\")"},"form":"unary","right":{"text":"group"}},{"syntax":"groupId unit","since":"arma3 2.12","params":[{"name":"unit","type":"Object","description":"a group's unit","type_expr":"Object"}],"returns":{"type":"Number","type_expr":"Number","description":"the unit's group ID (e.g \"2, taking command\")","text":"Number - the unit's group ID (e.g \"**2**, taking command\")"},"form":"unary","right":{"text":"unit"}}],"examples":[{"text":"```sqf\n_name = groupId group player;            // e.g \"B Alpha 1-1\"\n```","code":["_name = groupId group player;\t\t\t// e.g \"B Alpha 1-1\""]},{"text":"```sqf\nprivate _unitGroupId = groupId player;    // e.g 3 (number, not a string)\n```","code":["private _unitGroupId = groupId player;\t// e.g 3 (number, not a string)"]}],"see_also":["setGroupId","setGroupIdGlobal","group"]}