---
name: "moveInAny"
type: command
status: ok
groups: ["Unit Control"]
arma3_since: "1.18"
locality: {"argument": "global", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/moveInAny
revid: 378826
updated: 2026-07-02T20:02:58Z
---

# moveInAny

*Command · Unit Control · Arma 3 v1.18*

Locality: arguments **global** · effect **global**

## Description

Moves unit to the first available seat in the specified vehicle.

The order of priorities is the same order used in squad command when you order subordinates to get in vehicle to any position and is the same order used in Zeus when you drag units to a vehicle.

Seat assignment seems to use the following priority logic:

driver ([moveInDriver](../commands/moveInDriver.md)) → commander ([moveInCommander](../commands/moveInCommander.md)) → gunner ([moveInGunner](../commands/moveInGunner.md)) → turrets ([moveInTurret](../commands/moveInTurret.md)) → cargo ([moveInCargo](../commands/moveInCargo.md)).

> [!IMPORTANT]
> If the unit is already in a vehicle, nothing will happen. You should use [moveOut](../commands/moveOut.md) to move the unit out of his vehicle before trying to move him into a new (or same) vehicle.

> [!NOTE]
> This command will move player into the [locked](../commands/locked.md) vehicle or seat just as well.

## Syntax

### Syntax 1

```sqf
unit moveInAny vehicle
```

**Parameters:**

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

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) on success, [false](../commands/false.md) on failure

### Syntax 2

*since arma3 2.22*

```sqf
unit moveInAny [vehicle, positions, ignoreLocked]
```

**Parameters:**

- `unit`: [Object](../topics/Object.md) - person
- `vehicle`: [Object](../topics/Object.md) - transport
- `positions`: [Array](../topics/Array.md) of [String](../topics/String.md)s - array of positions to check and in which order. Positions are (in default order):
  - "DRIVER" - driver
  - "COMMANDER" - commander turret (turret configured as commander)
  - "GUNNER" - gunner turret (turret configured as gunner)
  - "TURRET" - other turrets incl. FFV but excl. gunner or commander turret
  - "CARGO" - cargo seats excl. FFV
  When empty array [] is given, all positions in default order (same as in the main syntax) will be considered; see also [emptyPositions](../commands/emptyPositions.md)
- `ignoreLocked`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) [true](../commands/true.md) to ignore locked positions

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) on success, [false](../commands/false.md) on failure

## Examples

### Example 1

```sqf
player moveInAny tank;
```

### Example 2

```sqf
player moveInAny [tank, ["CARGO", "TURRET"]]; // checks free cargo position, if not available, checks free turret next
```

## See also

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

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