simulCloudOcclusion: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(40 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 | | |game1= arma3 | ||
|version1= 1.00 | |||
| | |gr1= Environment | ||
| | |descr= Returns clouds occlusion between two given points. | ||
| | |pr= {{Feature|Eden Editor|SimulWeather seems to be disabled in [[:Category:Eden Editor|Eden Editor]] and scenario preview.}} | ||
| | |s1= [[simulCloudOcclusion]] [pos1, pos2] | ||
|p1= | |p1= pos1: [[Position]] | ||
|p2= pos2: [[Position]] | |||
| | |r1= | ||
* [[Number]] - (0 - no clouds, 1 - full clouds) | |||
* [[Nothing]] - If arguments are incorrect | |||
* [[Boolean]] - Returns [[false]] if simulWeather is disabled | |||
|x1= <sqf> | |||
private _posPlayer = getPos player; | |||
private _posAbovePlayer = +_posPlayer; _posAbovePlayer set [2,200]; | |||
simulCloudOcclusion [_posPlayer, _posAbovePlayer]; | |||
</sqf> | |||
| [[setSimulWeatherLayers]] | |seealso= [[setSimulWeatherLayers]] [[simulCloudDensity]] [[simulInClouds]] | ||
}} | }} | ||
<dl class="command_description"> | |||
<dl class= | |||
<dd class="notedate">Posted on 8 August, 2014 - 12:17 | <dt><dt> | ||
<dt class="note">[[User:Waffle SS.|Waffle SS.]] | <dd class="notedate">Posted on 8 August, 2014 - 12:17</dd> | ||
<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: < | <dt class="note">[[User:Waffle SS.|Waffle SS.]]</dt> | ||
<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: | |||
<sqf>if !isDedicated then {[] execVM "simulCloudOcclusionScript.sqf"};</sqf> | |||
</dl> | </dl> | ||
Latest revision as of 11:34, 3 September 2024
Description
- Description:
- Returns clouds occlusion between two given points.
- Problems:
- Groups:
- Environment
Syntax
- Syntax:
- simulCloudOcclusion [pos1, pos2]
- Parameters:
- pos1: Position
- pos2: Position
- Return Value:
Examples
- Example 1:
Additional Information
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
- 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: