{"name":"assignedTeam","title":"assignedTeam","type":"command","url":"https://community.bistudio.com/wiki/assignedTeam","revid":379239,"updated":"2026-10-30T23:16:59Z","groups":["Object Manipulation"],"status":"ok","games":{"arma2oa":"1.60","tkoh":"1.00","arma3":"0.50"},"since":"arma2oa 1.60","arma3_since":"0.50","locality":{"argument":"global"},"description":"Returns the team the unit belongs to. Possible values:\n\n- `\"MAIN\"` (default and white)\n- `\"RED\"`\n- `\"GREEN\"`\n- `\"BLUE\"`\n- `\"YELLOW\"`\n- Arma 3 v1.94 `\"\"` if given unit is objNull or remoteControlling another unit","syntaxes":[{"syntax":"assignedTeam unitName","params":[{"name":"unitName","type":"Object","type_expr":"Object"}],"returns":{"type":"String","type_expr":"String","description":"(or, prior to Arma 3 v1.94, Nothing if given unit is objNull or remoteControlling another unit)","text":"String (or, prior to Arma 3 v1.94, Nothing if given unit is objNull or remoteControlling another unit)"},"form":"unary","right":{"text":"unitName"}}],"examples":[{"code":["_team = assignedTeam player;"]}],"see_also":["assignTeam"],"notes":[{"user":"Commy2","date":"2014-12-13T23:56:00Z","text":"**Prior to Arma 3 v1.94** assignedTeam might return nil instead of any of the STRINGs above if the player is currently remote controlling a unit."}]}