forceWeatherChange: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Multiplayer " to "|Multiplayer= ")
m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(38 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.16


|1.16|Game version=
|gr1= Environment
|exec= server |Exec=
____________________________________________________________________________________________


| Forces saved wanted settings for weather to be actual (BEWARE: Will cause lag).
|serverExec= server


<br><br>
|descr= Forcibly applies previously set weather settings. Skips smooth transitions. This might cause lag.


{{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.}}|DESCRIPTION=
{{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.}}
____________________________________________________________________________________________


| '''forceWeatherChange''' |SYNTAX=
|s1= [[forceWeatherChange]]


| [[Nothing]] |RETURNVALUE=
|r1= [[Nothing]]
____________________________________________________________________________________________


|x1= <code>0 [[setOvercast]] 1;
|x1= <sqf>
0 [[setRain]] 1;
0 setOvercast 1;
[[forceWeatherChange]]; {{codecomment|Force immediate change overriding smooth transition}}</code> |EXAMPLE1=
0 setRain 1;
forceWeatherChange; // Force immediate change overriding smooth transitions
</sqf>


| mp= Execute on server |Multiplayer=
|seealso= [[fog]] [[fogForecast]] [[setFog]] [[overcast]] [[setOvercast]] [[overcastForecast]] [[nextWeatherChange]] [[rain]] [[setRain]] [[setWind]] [[simulWeatherSync]]
 
| [[fog]], [[fogForecast]], [[setFog]], [[overcast]], [[setOvercast]], [[overcastForecast]], [[nextWeatherChange]], [[rain]], [[setRain]], [[setWind]], [[simulWeatherSync]] |SEEALSO=
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Environment|{{uc:{{PAGENAME}}}}]]

Latest revision as of 19:43, 3 September 2024

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