Jump to content
Sign in to follow this  
firefly2442

Weather Scripting and Forecast in Editor Not Available?

Recommended Posts

In the editor, if you click on the "intel" button, it brings up a window to set the date and time, weather parameters like overcast, fog, wind, waves, etc. There are sliders for both current values and forecast values. There seem to be scripting commands to set values for the current value for all these items, however I only see "fogForecast" and "overcastForecast" to set the forecast. All the other items don't appear to have the ability to set future values. It's kind of odd because there are sliders in the game to set these so are they just undocumented or not implemented?

https://community.bistudio.com/wiki/Category:Scripting_Commands_Arma_3

Share this post


Link to post
Share on other sites

If you look at the documentation for setting the values, you can see that all of them have options for setting the time during which it'll slowly change. For example if you put

3600 setOvercast 1;

3600 setRain 1;

then it'll change during the next hour. And works better than just setting it instantly, since you'd have to use forceWeatherChange to get the game to properly take everything into account otherwise.

Share this post


Link to post
Share on other sites

Hmm, thanks. It still doesn't really explain the editor interface and the sliders though. Maybe those are things they'll release in the future.

Share this post


Link to post
Share on other sites
If you look at the documentation for setting the values, you can see that all of them have options for setting the time during which it'll slowly change. For example if you put

3600 setOvercast 1;

3600 setRain 1;

then it'll change during the next hour. And works better than just setting it instantly, since you'd have to use forceWeatherChange to get the game to properly take everything into account otherwise.

To clarify, this will take an hour (3600 seconds) to change smoothly over the the given TransitionTime (in seconds). Not change during the hour.

In other words, whatever setOvercast value is now, "3600 setOvercast 1;" will change it from it's current value to 1, over the next 3600 seconds. Same with SetRain. See also setFog.

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  

×