Jump to content
Sign in to follow this  
-J4F- Thunder666

setovercast broken ?

Recommended Posts

hi,

seems "setovercast" is broken since last Patch. Someone can confirm ?

i tried "

5 setovercast 1

" in a Trigger but nothing happen :confused: same with Rain.

thx in advance

Share this post


Link to post
Share on other sites

Been broken since the beginning of alpha I think. Same goes for rain.

Share this post


Link to post
Share on other sites

setovercast seems to eventually work. In a WIP mission, I have random weather - setovercast doesn't seem to work at the very beginning of the mission, but the subsequent setovercast 30 minutes later seems to work.

Share this post


Link to post
Share on other sites

I've noticed that with setOvercast to get it to work in the beginning of the mission you need to set Overcast in the editor to Manual, sometimes after you run setOverCast you need to execute SimulWeatherSync as well to make sure the changes apply. It's a weird system :\

Share this post


Link to post
Share on other sites

I noticed SimulWeatherSync, but wasn't sure what it's actual purpose was.

Share this post


Link to post
Share on other sites

I read somewhere that setOvercast's minimum time effect parameter is now 30 minutes. (Which if true is going to kind of suck.)

Share this post


Link to post
Share on other sites

As DMarkwick stated there is a required passing of time for setOvercast for the weather system to kick in. I got around this by adjusting the time after calling setOvercast. Its a bit of a hack, as it causes the game to pause, so its probably best to hide that with a cut screen or something..

/*
Set weather
Currently weathy is iffy in the alpha revise at beta.
*/
arjay_setWeather = 
{
private ["_preset", "_delay", "_now"];

_preset = _this select 0;
_delay = if(count _this > 1) then {_this select 1} else {30};

switch(_preset) do
{			
	case "STORMY":
		{
			_delay setOvercast 1;
			_delay setGusts 1;
			_delay setWindForce 1;
			_delay setWindStr 1;
			_delay setLightnings 1;				

			[] spawn {
				skipTime 2;					
				sleep 5; 					
				skipTime -2;					 					
				//call arjay_inspectEnvironment;
			};			
		};
	case "CLEAR":
		{
			_delay setOvercast 0;
			_delay setGusts 0;
			_delay setWindForce 0;
			_delay setWindStr 0;
			_delay setLightnings 0;

			[] spawn {
				skipTime 2;					
				sleep 5; 					
				skipTime -2;								
				//call arjay_inspectEnvironment;
			};		
		};
	case "OVERCAST":
		{			
			_delay setOvercast 0.5;
			_delay setGusts 0.5;
			_delay setWindForce 0.5;
			_delay setWindStr 0.5;
			_delay setLightnings 0.5;

			[] spawn {
				skipTime 2;					
				sleep 5; 					
				skipTime -2;							
				//call arjay_inspectEnvironment;
			};		
		};
};	
};

Edited by ARJay

Share this post


Link to post
Share on other sites

nice workaround :) thanks for the tip!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×