---
name: "swimInDepth"
type: command
status: ok
groups: ["Unit Control"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/swimInDepth
revid: 369202
updated: 2024-09-03T10:34:50Z
---

# swimInDepth

*Command · Unit Control · Arma 3 v0.50*

## Description

Sets the target depth level for swimming soldier. Depth should be a negative number.

## Syntax

```sqf
unit swimInDepth value
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)
- `value`: [Number](../topics/Number.md)

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

## Examples

### Example 1

```sqf
soldier swimInDepth -20;
```

### Example 2

```sqf
bob swimInDepth -10;
bob doMove ASLToAGL getPosASL player;
```

## See also

[underwater](../commands/underwater.md)

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