---
name: "fog"
type: command
status: ok
groups: ["Environment"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/fog
revid: 310796
updated: 2022-05-07T20:21:54Z
---

# fog

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

## Description

A getter for [setFog](../commands/setFog.md). Returns the current value of the fog in range 0..1.

## Syntax

```sqf
fog
```

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

## Examples

### Example 1

```sqf
_foglevel = fog;
```

## Multiplayer

Before Arma 3, each client and the server could have different values. In Arma 3 the value is synced across network.

## See also

[fogParams](../commands/fogParams.md) · [fogForecast](../commands/fogForecast.md) · [setFog](../commands/setFog.md) · [nextWeatherChange](../commands/nextWeatherChange.md)

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