---
name: "BIS_fnc_spawnVehicle"
type: function
status: ok
groups: ["Vehicles"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_spawnVehicle
revid: 370876
updated: 2025-02-21T10:44:01Z
---

# BIS_fnc_spawnVehicle

*Function · Vehicles · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Function to spawn a certain vehicle type with all crew (including turrets). The vehicle can either become part of an existing [group](../commands/group.md) or create a new [group](../commands/group.md).

> [!IMPORTANT]
> Before **Arma 3** (Arma 2, Take On Helicopters):
> - a Functions Module **must** be placed in order to use this function
> - a side's [center](../commands/createCenter.md) has to exist (by already having a unit of said side on the map)/be created via [createCenter](../commands/createCenter.md) or the vehicle will spawn empty.

## Syntax

```sqf
[position, direction, type, sideOrGroup] call BIS_fnc_spawnVehicle
```

**Parameters:**

- `position`: [Array](../topics/Array.md) format [Position](../topics/Position.md) - desired [position](../commands/position.md)
- `direction`: [Number](../topics/Number.md) - desired azimuth/[direction](../commands/direction.md)
- `type`: [String](../topics/String.md) - [type](../commands/typeOf.md) of the vehicle
- `sideOrGroup`: [Side](../topics/Side.md) or [Group](../topics/Group.md) - side or existing group

**Returns:** [Array](../topics/Array.md) format [createdVehicle, crew, group]:
- createdVehicle: [Object](../topics/Object.md) - the created vehicle
- crew: [Array](../topics/Array.md) of [Object](../topics/Object.md)s - the vehicle's crew members
- group: [Group](../topics/Group.md) - created or passed group

## Examples

### Example 1

```sqf
[getPos player, 180, "BMP3", east] call BIS_fnc_spawnVehicle;
```

### Example 2

```sqf
private _result = [getPos player, 180, "BMP3", east] call BIS_fnc_spawnVehicle;

private _vehicle = _result select 0;
_result params ["_vehicle", "_crew", "_group"];
```

## See also

[respawnVehicle](../commands/respawnVehicle.md) · [createVehicle](../commands/createVehicle.md) · [createUnit](../commands/createUnit.md) · [crew](../commands/crew.md)

<sub>Source: [BI Community Wiki — BIS fnc spawnVehicle](https://community.bistudio.com/wiki/BIS_fnc_spawnVehicle) (revision 370876).</sub>
