---
name: "assignedGroup"
type: command
status: ok
groups: ["Groups"]
arma3_since: "2.12"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/assignedGroup
revid: 338335
updated: 2023-02-28T14:34:19Z
---

# assignedGroup

*Command · Groups · Arma 3 v2.12*

## Description

Returns [Group](../topics/Group.md) to which the given vehicle was added last with [addVehicle](../commands/addVehicle.md). To update [assignedGroup](../commands/assignedGroup.md) to the current group, run [addVehicle](../commands/addVehicle.md) to the current group again.

## Syntax

```sqf
assignedGroup vehicle
```

**Parameters:**

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

**Returns:** [Group](../topics/Group.md)

## Examples

### Example 1

```sqf
_group = assignedGroup vehicle player;
```

## See also

[assignedVehicle](../commands/assignedVehicle.md) · [assignedVehicles](../commands/assignedVehicles.md) · [addVehicle](../commands/addVehicle.md) · [assignAsDriver](../commands/assignAsDriver.md) · [assignAsCargo](../commands/assignAsCargo.md) · [assignAsCommander](../commands/assignAsCommander.md) · [assignAsGunner](../commands/assignAsGunner.md) · [assignAsTurret](../commands/assignAsTurret.md) · [assignAsCargoIndex](../commands/assignAsCargoIndex.md) · [unassignVehicle](../commands/unassignVehicle.md) · [leaveVehicle](../commands/leaveVehicle.md) · [fullCrew](../commands/fullCrew.md)

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