---
name: "BIS_fnc_moveIn"
type: function
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_moveIn
revid: 327172
updated: 2022-07-12T22:05:55Z
---

# BIS_fnc_moveIn

*Function · Object Manipulation · Arma 3 v0.50 · introduced in Take On Helicopters v1.00*

Locality: arguments **local**

## Description

Moves a unit into vehicle. Compatible with [assignedVehicleRole](../commands/assignedVehicleRole.md) output.

## Syntax

```sqf
[vehicle, unit, role] call BIS_fnc_moveIn
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md)
- `unit`: [Object](../topics/Object.md) - the unit to move into *vehicle* - must be [local](../topics/Multiplayer_Scripting.md#locality)
- `role`: [Array](../topics/Array.md) - wanted seat, in format [*"role"*] or [*"role"*, turretPath]. Can be one of:
  - "driver"
  - "gunner"
  - "commander"
  - "cargo"
  - "turret"
  - "": will load *unit* in the first available seat (using [moveInAny](../commands/moveInAny.md))

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if moved in successfully

## Examples

### Example 1

```sqf
[myCar, player, "cargo"] call BIS_fnc_moveIn;
```

### Example 2

```sqf
[myTank, player, ["turret", [0]]] call BIS_fnc_moveIn;
```

### Example 3

```sqf
[myTank, player, ["turret", -1]] call BIS_fnc_moveIn; // will moveInDriver the player
```

## See also

[moveInDriver](../commands/moveInDriver.md) · [moveInGunner](../commands/moveInGunner.md) · [moveInCommander](../commands/moveInCommander.md) · [moveInCargo](../commands/moveInCargo.md) · [moveInTurret](../commands/moveInTurret.md) · [moveInAny](../commands/moveInAny.md)

<sub>Source: [BI Community Wiki — BIS fnc moveIn](https://community.bistudio.com/wiki/BIS_fnc_moveIn) (revision 327172).</sub>
