forceWeatherChange: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Category:Eden Editor" to "Eden Editor")
m (Fixed comment in example code)
Line 8: Line 8:
|serverExec= server
|serverExec= server


|descr= Will force-apply previously set settings. This might cause lag.
|descr= Forcibly applies previously set weather settings. Skips smooth transitions. This might cause lag.


{{Feature|Informative|To prevent the engine from overwriting custom weather settings, enable the ''Manual Control'' settings in [[:Category:Eden Editor|Eden Editor]]'s intel section.}}
{{Feature|Informative|To prevent the engine from overwriting custom weather settings, enable the ''Manual Control'' settings in [[:Category:Eden Editor|Eden Editor]]'s intel section.}}
Line 18: Line 18:
|x1= <sqf>0 setOvercast 1;
|x1= <sqf>0 setOvercast 1;
0 setRain 1;
0 setRain 1;
forceWeatherChange; Force immediate change overriding smooth transition</sqf>
forceWeatherChange; // Force immediate change overriding smooth transitions</sqf>


|seealso= [[fog]] [[fogForecast]] [[setFog]] [[overcast]] [[setOvercast]] [[overcastForecast]] [[nextWeatherChange]] [[rain]] [[setRain]] [[setWind]] [[simulWeatherSync]]
|seealso= [[fog]] [[fogForecast]] [[setFog]] [[overcast]] [[setOvercast]] [[overcastForecast]] [[nextWeatherChange]] [[rain]] [[setRain]] [[setWind]] [[simulWeatherSync]]
}}
}}

Revision as of 17:57, 1 August 2023

Hover & click on the images for description

Description

Description:
Forcibly applies previously set weather settings. Skips smooth transitions. 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 transitions

Additional Information

See also:
fog fogForecast setFog overcast setOvercast overcastForecast nextWeatherChange rain setRain setWind simulWeatherSync

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