---
name: "setWaves"
type: command
status: ok
groups: ["Environment"]
arma3_since: "0.50"
locality: {"argument": null, "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setWaves
revid: 349863
updated: 2023-11-20T22:10:45Z
---

# setWaves

*Command · Environment · Arma 3 v0.50*

Locality: effect **local**

## Description

Changes the waves value smoothly during the given time (in seconds). A time of zero means there will be an immediate change.

**NOTE**: This command will have no effect (even though the value of [waves](../commands/waves.md) changes) unless `Manual Override` option is selected in the editor in the Intel, which is normally off.

## Syntax

```sqf
time setWaves value
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
180 setWaves .5;
```

### Example 2

```sqf
0 setWaves 1;
```

## See also

[waves](../commands/waves.md) · [fog](../commands/fog.md) · [overcast](../commands/overcast.md) · [setLightnings](../commands/setLightnings.md)

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