---
name: "simulCloudOcclusion"
type: command
status: ok
groups: ["Environment"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/simulCloudOcclusion
revid: 369177
updated: 2024-09-03T10:34:44Z
---

# simulCloudOcclusion

*Command · Environment · Arma 3 v1.00*

## Description

Returns clouds occlusion between two given points.

## Syntax

```sqf
simulCloudOcclusion [pos1, pos2]
```

**Parameters:**

- `pos1`: [Position](../topics/Position.md)
- `pos2`: [Position](../topics/Position.md)

**Returns:** - [Number](../topics/Number.md) - (0 - no clouds, 1 - full clouds)
- [Nothing](../topics/Nothing.md) - If arguments are incorrect
- [Boolean](../topics/Boolean.md) - Returns [false](../commands/false.md) if simulWeather is disabled

## Examples

### Example 1

```sqf
private _posPlayer = getPos player;
private _posAbovePlayer = +_posPlayer; _posAbovePlayer set [2,200];
simulCloudOcclusion [_posPlayer, _posAbovePlayer];
```

## Problems

> [!NOTE]
> **Eden Editor:** SimulWeather seems to be disabled in Eden Editor and scenario preview.

## See also

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

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