simulCloudOcclusion: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (see also)
(Added example and dedicated server behavior)
Line 18: Line 18:




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


____________________________________________________________________________________________
____________________________________________________________________________________________
Line 32: Line 31:
<dl class='command_description'>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on 8 August, 2014 - 12:17
<dt class="note">'''[[User:Waffle SS.|Waffle SS.]]'''
<dd class="note">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: <code>if ![[isDedicated]] then {[] [[execVM]] "simulCloudOcclusionScript.sqf"};</code>


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 05:24, 28 August 2014

Hover & click on the images for description

Description

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

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