---
name: "setWind"
type: command
status: ok
groups: ["Environment"]
arma3_since: "0.50"
locality: {"argument": null, "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/setWind
revid: 348903
updated: 2023-11-08T14:39:59Z
---

# setWind

*Command · Environment · Arma 3 v0.50 · introduced in Arma 2 v1.00*

Locality: effect **global**

## Description

Set current or permanent wind vector.

> [!IMPORTANT]
> The effect is global only if it is executed on the server. Wind set locally will sync back to server value in a while.

## Syntax

```sqf
setWind [x, y, forced]
```

**Parameters:**

- `x`: [Number](../topics/Number.md) - easterly component (in m/s, positive = to the east)
- `y`: [Number](../topics/Number.md) - northerly component (in m/s, positive = to the north)
- `forced`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) set to [true](../commands/true.md) to lock the wind to constantly blows in set direction

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

## Examples

### Example 1

```sqf
setWind [10, 10, true];
```

## See also

[wind](../commands/wind.md) · [setWindDir](../commands/setWindDir.md) · [gusts](../commands/gusts.md) · [setGusts](../commands/setGusts.md)

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