---
name: "underwater"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/underwater
revid: 336959
updated: 2023-01-04T16:44:17Z
---

# underwater

*Command · Object Manipulation · Arma 3 v0.50*

## Description

Returns whether the object is fully underwater.

> [!NOTE]
> This command works well with Arma 3 mini-submarines, which was most likely the primary design goal.

## Syntax

```sqf
underwater object
```

**Parameters:**

- `object`: [Object](../topics/Object.md) - mini-submarine

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

## Examples

### Example 1

```sqf
private _isUnderwater = underwater vehicle player;
```

### Example 2

```sqf
private _isHeadUnderwater = eyePos player select 2 < 0;
```

## See also

[isTouchingGround](../commands/isTouchingGround.md) · [isAbleToBreathe](../commands/isAbleToBreathe.md)

## Community notes

**Killzone_Kid** — 2017-02-02

This command is quite buggy with objects other than mini-subs. Code in [#Example 2](../commands/underwater.md#example-2) is a good alternative.

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