forceWeatherChange: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3
|game1= arma3


|1.16
|version1= 1.16


|gr1= Environment
|gr1= Environment
Line 9: Line 9:
|serverExec= server
|serverExec= server


| Forces saved wanted settings for weather to be actual (BEWARE: Will cause lag).  
|descr= Will force-apply previously set settings. This might cause lag.


<br><br>
{{Feature|Informative|To prevent the engine from overwriting custom weather settings, enable the ''Manual Control'' settings in [[Eden Editor]]'s intel section.}}


{{Feature|Informative|The engine has own idea about the weather and will interfere with your scripted weather at every opportunity it gets. So don't give it the opportunity. In the editor's Intel there are Manual Override setting for many aspects of the weather. Select them to disable engine interference. Some commands such as [[setWaves]] and  [[setLightnings]] will not even work until their respective settings are set to manual.}}
|s1= '''forceWeatherChange'''


| '''forceWeatherChange'''
|r1= [[Nothing]]
 
| [[Nothing]]


|x1= <code>0 [[setOvercast]] 1;
|x1= <code>0 [[setOvercast]] 1;
0 [[setRain]] 1;
0 [[setRain]] 1;
[[forceWeatherChange]]; {{codecomment|Force immediate change overriding smooth transition}}</code>
[[forceWeatherChange]]; {{codecomment|Force immediate change overriding smooth transition}}</code>
|mp= Execute on server


|seealso= [[fog]], [[fogForecast]], [[setFog]], [[overcast]], [[setOvercast]], [[overcastForecast]], [[nextWeatherChange]], [[rain]], [[setRain]], [[setWind]], [[simulWeatherSync]]
|seealso= [[fog]], [[fogForecast]], [[setFog]], [[overcast]], [[setOvercast]], [[overcastForecast]], [[nextWeatherChange]], [[rain]], [[setRain]], [[setWind]], [[simulWeatherSync]]
}}
}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|Scripting Commands}}

Revision as of 15:32, 29 March 2021

Hover & click on the images for description

Description

Description:
Will force-apply previously set settings. This might cause lag.
To prevent the engine from overwriting custom weather settings, enable the Manual Control settings in Eden Editor's intel section.
Groups:
Environment

Syntax

Syntax:
forceWeatherChange
Return Value:
Nothing

Examples

Example 1:
0 setOvercast 1; 0 setRain 1; forceWeatherChange; Force immediate change overriding smooth transition

Additional Information

See also:
fogfogForecastsetFogovercastsetOvercastovercastForecastnextWeatherChangerainsetRainsetWindsimulWeatherSync

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note