---
name: "setSimulWeatherLayers"
type: command
status: ok
groups: ["Environment"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/setSimulWeatherLayers
revid: 370511
updated: 2024-12-30T12:00:46Z
---

# setSimulWeatherLayers

*Command · Environment · Arma 3 v1.00*

## Description

Sets number of simul weather layers, affects quality of simul weather clouds.

## Syntax

```sqf
setSimulWeatherLayers layers
```

**Parameters:**

- `layers`: [Number](../topics/Number.md) - cloud layers. -1 to reset to defaults (since 2.20), 0 to disable simul weather.

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

## Examples

### Example 1

```sqf
setSimulWeatherLayers 0; // Very flat clouds
```

## Problems

Prior to Arma 3 v2.20 the effect of this command seems to be persistent across the game instance, e.g. restarting a mission will not reset it.

## See also

[simulCloudDensity](../commands/simulCloudDensity.md) · [simulCloudOcclusion](../commands/simulCloudOcclusion.md) · [simulInClouds](../commands/simulInClouds.md)

## Community notes

**Sa-Matra** — 2022-08-01

You can revert clouds back to volumetric ones by executing this script:

```sqf
private _display_menu = findDisplay 46 createDisplay "RscDisplayInterrupt"; // ESC menu
ctrlActivate (_display_menu displayCtrl 301); // Pressing "Video" button
ctrlActivate (findDisplay 5 displayCtrl 2); // Pressing "Cancel" in Video menu
_display_menu closeDisplay 2; // Closing ESC menu
```

Pressing "Cancel" button in Video menu makes engine re-init the clouds, reverting results of this command. Make sure its in unscheduled environment, otherwise players might see flashing menu and you'll have a serialization error message.

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