{"name":"setSimulWeatherLayers","title":"setSimulWeatherLayers","type":"command","url":"https://community.bistudio.com/wiki/setSimulWeatherLayers","revid":370511,"updated":"2024-12-30T12:00:46Z","groups":["Environment"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Sets number of simul weather layers, affects quality of simul weather clouds.","syntaxes":[{"syntax":"setSimulWeatherLayers layers","params":[{"name":"layers","type":"Number","description":"cloud layers. -1 to reset to defaults (since 2.20), 0 to disable simul weather.","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"layers"}}],"examples":[{"code":["setSimulWeatherLayers 0; // Very flat clouds"]}],"problems":"Prior to Arma 3 v2.20 the effect of this command seems to be persistent across the game instance, e.g. restarting a mission will not reset it.","see_also":["simulCloudDensity","simulCloudOcclusion","simulInClouds"],"notes":[{"user":"Sa-Matra","date":"2022-08-01T12:09:41Z","text":"You can revert clouds back to volumetric ones by executing this script:\n\n```sqf\nprivate _display_menu = findDisplay 46 createDisplay \"RscDisplayInterrupt\"; // ESC menu\nctrlActivate (_display_menu displayCtrl 301); // Pressing \"Video\" button\nctrlActivate (findDisplay 5 displayCtrl 2); // Pressing \"Cancel\" in Video menu\n_display_menu closeDisplay 2; // Closing ESC menu\n```\n\nPressing \"Cancel\" button in Video menu makes engine re-init the clouds, reverting results of this command. Make sure its in unscheduled environment, otherwise players might see flashing menu and you'll have a serialization error message."}]}