---
name: "assignedTeam"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/assignedTeam
revid: 341182
updated: 2023-05-13T22:13:46Z
---

# assignedTeam

*Command · Object Manipulation · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.60*

Locality: arguments **global**

## Description

Returns the team the unit belongs to. Possible values:

- `"MAIN"` (default and white)
- `"RED"`
- `"GREEN"`
- `"BLUE"`
- `"YELLOW"`
- Arma 3 v1.94 `""` if given unit is [objNull](../commands/objNull.md) or [remoteControl](../commands/remoteControl.md)ling another unit

## Syntax

```sqf
assignedTeam unitName
```

**Parameters:**

- `unitName`: [Object](../topics/Object.md)

**Returns:** [String](../topics/String.md) (or, prior to Arma 3 v1.94, [Nothing](../topics/Nothing.md) if given unit is [objNull](../commands/objNull.md) or [remoteControl](../commands/remoteControl.md)ling another unit)

## Examples

### Example 1

```sqf
_team = assignedTeam player;
```

## See also

[assignTeam](../commands/assignTeam.md)

<sub>Source: [BI Community Wiki — assignedTeam](https://community.bistudio.com/wiki/assignedTeam) (revision 341182).</sub>
