setSimulWeatherLayers: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
No edit summary
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| arma3
|game1= arma3
 
|version1= 1.00
|1.00


|gr1= Environment
|gr1= Environment


| Sets number of simul weather layers, affects quality of simul weather clouds.
|descr= Sets number of simul weather layers, affects quality of simul weather clouds.


| '''setSimulWeatherLayers''' layers
|pr= Prior to Arma 3 v2.20 the effect of this command seems to be persistent across the game instance, e.g. restarting a mission will not reset it.


|p1= layers: [[Number]]
|s1= [[setSimulWeatherLayers]] layers
| [[Nothing]]


|p1= layers: [[Number]] - cloud layers. -1 to reset to defaults (since 2.20), 0 to disable simul weather.


|x1= <code></code>
|r1= [[Nothing]]


|x1= <sqf>setSimulWeatherLayers 0; // Very flat clouds</sqf>


| [[simulCloudDensity]], [[simulCloudOcclusion]], [[simulInClouds]]
|seealso= [[simulCloudDensity]] [[simulCloudOcclusion]] [[simulInClouds]]
}}


|
{{Note
|user= Sa-Matra
|timestamp= 20220801120941
|text= You can revert clouds back to volumetric ones by executing this script:
<sqf>
private _display_menu = findDisplay 46 createDisplay "RscDisplayInterrupt"; // ESC menu
ctrlActivate (_display_menu displayCtrl 301); // Pressing "Video" button
ctrlActivate (findDisplay 5 displayCtrl 2); // Pressing "Cancel" in Video menu
_display_menu closeDisplay 2; // Closing ESC menu
</sqf>
Pressing "Cancel" button in Video menu makes engine re-init the clouds, reverting results of this command. Make sure its in unscheduled environment, otherwise players might see flashing menu and you'll have a serialization error message.
}}
}}
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 14:00, 30 December 2024

Hover & click on the images for description

Description

Description:
Sets number of simul weather layers, affects quality of simul weather clouds.
Problems:
Prior to Arma 3 v2.20 the effect of this command seems to be persistent across the game instance, e.g. restarting a mission will not reset it.
Groups:
Environment

Syntax

Syntax:
setSimulWeatherLayers layers
Parameters:
layers: Number - cloud layers. -1 to reset to defaults (since 2.20), 0 to disable simul weather.
Return Value:
Nothing

Examples

Example 1:
setSimulWeatherLayers 0; // Very flat clouds

Additional Information

See also:
simulCloudDensity simulCloudOcclusion simulInClouds

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
Sa-Matra - c
Posted on Aug 01, 2022 - 12:09 (UTC)
You can revert clouds back to volumetric ones by executing this script:
private _display_menu = findDisplay 46 createDisplay "RscDisplayInterrupt"; // ESC menu ctrlActivate (_display_menu displayCtrl 301); // Pressing "Video" button ctrlActivate (findDisplay 5 displayCtrl 2); // Pressing "Cancel" in Video menu _display_menu closeDisplay 2; // Closing ESC menu
Pressing "Cancel" button in Video menu makes engine re-init the clouds, reverting results of this command. Make sure its in unscheduled environment, otherwise players might see flashing menu and you'll have a serialization error message.