---
name: "fogParams"
type: command
status: ok
groups: ["Environment"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/fogParams
revid: 353028
updated: 2024-03-12T11:39:48Z
---

# fogParams

*Command · Environment · Arma 3 v1.00*

## Description

A getter for [setFog](../commands/setFog.md) (Alt Syntax). Returns extended params for the fog

## Syntax

```sqf
fogParams
```

**Returns:** [Array](../topics/Array.md) of [Number](../topics/Number.md)s - in [setFog](../commands/setFog.md) format: [fogValue, fogDecay, fogBase]

## Examples

### Example 1

```sqf
private _fog = fogParams;
```

## See also

[setFog](../commands/setFog.md) · [fog](../commands/fog.md) · [fogForecast](../commands/fogForecast.md) · [rainParams](../commands/rainParams.md)

## Community notes

**POLPOX** — 2023-09-23

To return a position (ASL Height)'s approx. fog level

```sqf
private _getFogPowerASL = {
    fogParams params ["_fogPower","_fogDecay","_fogHeight"] ;
    private _height = _this - _fogHeight;
    (_fogPower * 0.5 ^ (_height * _fogDecay / 2.45) max 0)
};

(AGLToASL (positionCameraToWorld [0,0,0]) # 2) call _getFogPowerASL;
```

Note that, this could return >1 value if fogDecay is not 0.

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