simulCloudOcclusion: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
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...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.00|Game version=
|1.00


|gr1= Environment |GROUP1=
|gr1= Environment


| Returns clouds occlusion between two given points (0 - no clouds, 1 - full clouds). |DESCRIPTION=
| Returns clouds occlusion between two given points (0 - no clouds, 1 - full clouds).


| '''simulCloudOcclusion''' [pos1,pos2] |SYNTAX=
| '''simulCloudOcclusion''' [pos1,pos2]


|p1= [pos1,pos2]: [[Array]] |PARAMETER1=
|p1= [pos1,pos2]: [[Array]]
|p2= pos1: [[Position]] |PARAMETER2=
|p2= pos1: [[Position]]
|p3= pos2: [[Position]] |PARAMETER3=
|p3= pos2: [[Position]]
| [[Number]] |RETURNVALUE=
| [[Number]]




|x1= <code>canSeeSun = ('''simulCloudOcclusion''' == 0)</code>|EXAMPLE1=
|x1= <code>canSeeSun = ('''simulCloudOcclusion''' == 0)</code>




| [[setSimulWeatherLayers]], [[simulCloudDensity]], [[simulInClouds]] |SEEALSO=
| [[setSimulWeatherLayers]], [[simulCloudDensity]], [[simulInClouds]]


| |MPBEHAVIOUR=
|
}}
}}



Revision as of 11:25, 18 January 2021

Hover & click on the images for description

Description

Description:
Returns clouds occlusion between two given points (0 - no clouds, 1 - full clouds).
Groups:
Environment

Syntax

Syntax:
simulCloudOcclusion [pos1,pos2]
Parameters:
[pos1,pos2]: Array
pos1: Position
pos2: Position
Return Value:
Number

Examples

Example 1:
canSeeSun = (simulCloudOcclusion == 0)

Additional Information

See also:
setSimulWeatherLayerssimulCloudDensitysimulInClouds

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

Notes

Posted on 8 August, 2014 - 12:17
Waffle SS.
The simulCloudOcclusion command is not recognized on dedicated servers, and will produce an error. If you use this command, it cannot be anywhere within a script that is run on the dedicated server, or the entire script will halt. To get around this, you can use: if !isDedicated then {[] execVM "simulCloudOcclusionScript.sqf"};

Bottom Section