simulCloudOcclusion: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " | }}" to " }}") |
(overhaul, added warning about return value) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|1.00 | |version1= 1.00 | ||
|gr1= Environment | |gr1= Environment | ||
| Returns clouds occlusion between two given points | |descr= Returns clouds occlusion between two given points. | ||
| | |s1= [[simulCloudOcclusion]] [pos1, pos2] | ||
|p1 | |p1= pos1: [[Position]] | ||
| | |p2= pos2: [[Position]] | ||
| [[setSimulWeatherLayers]], [[simulCloudDensity]], [[simulInClouds]] | |r1= [[Number]] - (0 - no clouds, 1 - full clouds) {{Feature|warning|In {{GVI|arma3|2.03}} this command returns a [[Boolean]]}} | ||
|x1= <code>[[private]] _posPlayer [[a = b|=]] [[getPos]] [[player]]; | |||
[[private]] _posAbovePlayer [[a = b|=]] [[+]]_posPlayer; _posAbovePlayer [[set]] [2,200]; | |||
_posAbovePlayer [[a = b|=]] _posPlayer; _posAbovePlayer [[set]] [2,200]; | |||
[[simulCloudOcclusion]] [_posPlayer, _posAbovePlayer];</code> | |||
|seealso= [[setSimulWeatherLayers]], [[simulCloudDensity]], [[simulInClouds]] | |||
}} | }} | ||
Revision as of 12:14, 8 February 2021
Description
- Description:
- Returns clouds occlusion between two given points.
- Groups:
- Environment
Syntax
- Syntax:
- simulCloudOcclusion [pos1, pos2]
- Parameters:
- pos1: Position
- pos2: Position
- Return Value:
- Number - (0 - no clouds, 1 - full clouds)
Examples
- Example 1:
private _posPlayer = getPos player; private _posAbovePlayer = +_posPlayer; _posAbovePlayer set [2,200]; _posAbovePlayer = _posPlayer; _posAbovePlayer set [2,200]; simulCloudOcclusion [_posPlayer, _posAbovePlayer];
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:
if !isDedicated then {[] execVM "simulCloudOcclusionScript.sqf"};