forceWeatherChange: Difference between revisions

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


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


| 1.00 |= Game version
|gr1= Environment
____________________________________________________________________________________________


| Force a change in the weather. |= Description
|serverExec= server
____________________________________________________________________________________________


| '''forceWeatherChange''' |= Syntax
|descr= Forcibly applies previously set weather settings. Skips smooth transitions. This might cause lag.


| [[Nothing]] |= Return value
{{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.}}
____________________________________________________________________________________________


|x1= <code>[[forceWeatherChange]];</code> |= Example 1
|s1= [[forceWeatherChange]]  


| mp = Each client and the server can have differing weather. |= Multiplayer
|r1= [[Nothing]]


| [[fog]], [[fogForecast]], [[setFog]], [[overcast]], [[setOvercast]], [[overcastForecast]], [[nextWeatherChange]] |= See also
|x1= <sqf>
0 setOvercast 1;
0 setRain 1;
forceWeatherChange; // Force immediate change overriding smooth transitions
</sqf>
 
|seealso= [[fog]] [[fogForecast]] [[setFog]] [[overcast]] [[setOvercast]] [[overcastForecast]] [[nextWeatherChange]] [[rain]] [[setRain]] [[setWind]] [[simulWeatherSync]]
}}
}}
<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|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Environment|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{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