---
name: "getDiverState"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "1.96"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getDiverState
revid: 309148
updated: 2022-05-03T14:10:04Z
---

# getDiverState

*Command · Object Manipulation · Arma 3 v1.96*

## Description

Returns [true](../commands/true.md) when object is in diver state - e.g when the unit would put diving [goggles](../commands/goggles.md) on.

> [!NOTE]
> Diving [goggles](../commands/goggles.md) remove blurriness underwater, however when assigned, they do not appear on the face of the unit until the unit steps into the water.
> This command allows to detect the moment when the goggles are visible.
> If the unit doesn't have diving goggles assigned, this command would still return [true](../commands/true.md) at appropriate time if the unit steps into the water.

## Syntax

```sqf
getDiverState unit
```

**Parameters:**

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

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) when diving [goggles](../commands/goggles.md) are visible

## Examples

### Example 1

```sqf
private _gogglesOn = getDiverState player;
```

## See also

[goggles](../commands/goggles.md) · [removeGoggles](../commands/removeGoggles.md) · [addGoggles](../commands/addGoggles.md)

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