---
name: "rain"
type: command
status: ok
groups: ["Environment"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/rain
revid: 348549
updated: 2023-11-08T13:10:02Z
---

# rain

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

## Description

Returns the current value of rain density.

## Syntax

```sqf
rain
```

**Returns:** [Number](../topics/Number.md) in range 0..1

## Examples

### Example 1

```sqf
_rainLevel = rain;
```

## Multiplayer

Pre-Arma 3, each client and the server could have different rain values. Since Arma 3 the value is synced over network.

## See also

[setRain](../commands/setRain.md) · [fog](../commands/fog.md)

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