---
name: "BIS_fnc_groupVehicles"
type: function
status: ok
groups: ["Vehicles"]
arma3_since: "0.76"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_groupVehicles
revid: 327945
updated: 2022-07-13T12:50:35Z
---

# BIS_fnc_groupVehicles

*Function · Vehicles · Arma 3 v0.76*

## Description

Returns all vehicles a group possesses, assigned vehicles can be included.

## Syntax

```sqf
[target, assignedVeh] call BIS_fnc_groupVehicles
```

**Parameters:**

- `target`: [Object](../topics/Object.md) or [Group](../topics/Group.md) - the unit or group to check, if unit is given it is group is then used
- `assignedVeh`: [Boolean](../topics/Boolean.md) - if assigned vehicles should also be returned (vehicles that unit's may not be inside of but assigned to)

**Returns:** [Array](../topics/Array.md) - list of all vehicles in control/assigned to the group, empty if group has none

## Examples

### Example 1

```sqf
[group player, true] call BIS_fnc_groupVehicles;
```

## See also

[group](../commands/group.md) · [createVehicle](../commands/createVehicle.md)

<sub>Source: [BI Community Wiki — BIS fnc groupVehicles](https://community.bistudio.com/wiki/BIS_fnc_groupVehicles) (revision 327945).</sub>
