---
name: "setWindDir"
type: command
status: ok
groups: ["Environment"]
arma3_since: "0.50"
locality: {"argument": null, "effect": "global", "server_exec": true}
source: https://community.bistudio.com/wiki/setWindDir
revid: 377549
updated: 2026-01-02T06:54:45Z
---

# setWindDir

*Command · Environment · Arma 3 v0.50*

Locality: effect **global** · **server execution only**

## Description

Changes the wind direction smoothly.

## Syntax

### Syntax 1

```sqf
time setWindDir value
```

**Parameters:**

- `time`: [Number](../topics/Number.md) - transition time in seconds. `0` will cause the change to be immediate
- `value`: [Number](../topics/Number.md) - azimuth

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

### Syntax 2

```sqf
setWindDir direction
```

**Parameters:**

- `direction`: [Position2D](../topics/Position.md#introduction) - flat wind direction and strength

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

## Examples

### Example 1

```sqf
60 setWindDir 180;
```

### Example 2

```sqf
setWindDir [1, -15];
```

## Multiplayer

Effect is global only when executed on the server. On clients wind direction will sync to server value in a while.

## See also

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

## Community notes

**Waffle SS.** — 2014-04-12

Seems to make wind [0, 0] in MP. (Arma 3 v1.00)

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