{"name":"simulCloudOcclusion","title":"simulCloudOcclusion","type":"command","url":"https://community.bistudio.com/wiki/simulCloudOcclusion","revid":379476,"updated":"2026-10-31T00:11:36Z","groups":["Environment"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Returns clouds occlusion between two given points.","syntaxes":[{"syntax":"simulCloudOcclusion [pos1, pos2]","params":[{"name":"pos1","type":"Position","type_expr":"Position"},{"name":"pos2","type":"Position","type_expr":"Position"}],"returns":{"types":["Number"],"type_expr":"Number | Nothing | Boolean","description":"- Number - (0 - no clouds, 1 - full clouds) - Nothing - If arguments are incorrect - Boolean - Returns false if simulWeather is disabled","text":"- Number - (0 - no clouds, 1 - full clouds)\n- Nothing - If arguments are incorrect\n- Boolean - Returns false if simulWeather is disabled"},"form":"unary","right":{"text":"[pos1, pos2]"}}],"examples":[{"code":["private _posPlayer = getPos player;\nprivate _posAbovePlayer = +_posPlayer; _posAbovePlayer set [2,200];\nsimulCloudOcclusion [_posPlayer, _posAbovePlayer];"]}],"problems":"> [!NOTE]\n> **Eden Editor:** SimulWeather seems to be disabled in Eden Editor and scenario preview.","see_also":["setSimulWeatherLayers","simulCloudDensity","simulInClouds"],"notes":[{"user":"Waffle SS.","date":"2014-08-08T12:17:00Z","text":"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:\n\n```sqf\nif !isDedicated then {[] execVM \"simulCloudOcclusionScript.sqf\"};\n```"}]}