Description
Returns clouds occlusion between two given points.
Syntax
simulCloudOcclusion [pos1, pos2]
Parameters:
Returns: - Number - (0 - no clouds, 1 - full clouds)
Examples
Example 1
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 · simulCloudDensity · simulInClouds
The simulCloudOcclusion command is not recognized on dedicated servers, and will produce an error. If you use this command, it cannot be anywhere within a script that is run on the dedicated server, or the entire script will halt. To get around this, you can use:
if !isDedicated then {[] execVM "simulCloudOcclusionScript.sqf"};