---
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: 379239
updated: 2026-10-30T23:16:59Z
---

# 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 [remoteControlling](../commands/remoteControl.md) 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 [remoteControlling](../commands/remoteControl.md) another unit)

## Examples

### Example 1

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

## See also

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

## Community notes

**Commy2** — 2014-12-13

**Prior to Arma 3 v1.94** assignedTeam might return [nil](../commands/nil.md) instead of any of the STRINGs above if the player is currently remote controlling a unit.

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