{"name":"setOvercast","operator":null,"title":"setOvercast","type":"command","url":"https://community.bistudio.com/wiki/setOvercast","revid":376723,"updated":"2025-11-12T14:34:03Z","groups":["Environment"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":"local","server_exec":false},"exec":null,"description":"Set overcast to given value smoothly during given time (in seconds). Zero time means immediate change.\nAn overcast setting of zero means clear (sunny) weather, and one means storms and rain are very likely. Higher overcast values also result in higher wind speeds.","syntaxes":[{"syntax":"time setOvercast overcast","since":null,"effect":null,"exec":null,"params":[{"name":"time","type":"Number","optional":false,"default":null,"description":"in seconds","types":["Number"],"since":null,"text":"time: Number - in seconds"},{"name":"overcast","type":"Number","optional":false,"default":null,"description":"in range 0..1","types":["Number"],"since":null,"text":"overcast: Number - in range 0..1"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"time","types":["Number"]},"right":{"text":"overcast","types":["Number"]}}],"examples":[{"text":"```sqf\n60 setOvercast 0.5;\n```","code":["60 setOvercast 0.5;"]}],"multiplayer":"**Pre Arma 3:** Each client and the server can have differing overcast values. \n\n> [!NOTE]\n> **Arma 3:** In Arma 3 weather values are periodically synchronised with the server.","problems":null,"aliases":[],"see_also":["overcast","nextWeatherChange","simulSetHumidity"],"notes":[{"user":"Hardrock","date":"2006-08-04T14:00:00Z","text":"*Notes from before the conversion:*\n\nUse setRain if you want to make sure it rains."},{"user":"Ceeeb","date":"2007-04-20T04:24:00Z","text":"Only one script command induced weather change (either setOvercast or setFog) can be happening at a time. Starting a new weather change will immediately halt the current weather change. SetRain changes are independent and can occur simultaneously to a weather change."},{"user":"DnA","date":"2013-08-14T11:22:00Z","text":"Arma 3's volumetric clouds cannot be instantly changed (it would take up to a few seconds to do a full recompute). Therefore, *0 setOvercast 0* will not have the desired effect. You can use skipTime to get to the desired cloud coverage.\n\nNOTE: To get instant, seamless overcast change to overcast 1 advance the time 24 hours with skipTime while setting overcast transition time to 86400 seconds (24 hours) - Killzone_Kid (12:08, 15 August 2013)\n\n```sqf\n86400 setOvercast 1;\nskipTime 24;\n\n// to remain on the same date:\nskipTime -24;\n86400 setOvercast 1;\nskipTime 24;\n```"},{"user":"Killzone_Kid","date":"2013-10-28T11:06:00Z","text":"With removal of simulSetHumidity, in order to add instant cloud cover, execute simulWeatherSync with delay (for now):\n\n```sqf\nskipTime -24;\n86400 setOvercast 1;\nskipTime 24;\n0 spawn {\n    sleep 0.1;\n    simulWeatherSync;\n};\n```\n\nThere is slight freeze with simul command."},{"user":"Adanteh","date":"2015-08-21T19:58:00Z","text":"Delay in Arma 3 doesn't work for quick changes. Using 120 setOvercast 1 only reaches full overcast after about 50 minutes.\nUsing setTimeMultiplier does speed up the overcast, but it doesn't render any clouds.\nYou will need to skipTime or forceWeatherChange to render clouds if you want it to happen within the hour."},{"user":"AgentRev","date":"2016-05-05T00:41:00Z","text":"Actual transition time is inversely proportional to the timeMultiplier. For example, a time of 7200 (2 hours) and a timeMultiplier of 2 will result in a real-life transition time of 7200 / 2 = 3600 (1 hour).\n\nIn case of overcast, a timeMultiplier > 1 will cause gradual desyncing of the cloud cover with the overcast value, so it is advised that you multiply the transition time by the multiplier, i.e. :\n\n```sqf\n(7200 * timeMultiplier) setOvercast 1\n```"}],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Environment","Introduced with Operation Flashpoint version 1.00","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Scripting Commands: Local Effect","Take On Helicopters: Scripting Commands"]}