humidity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |0.50|= Game version ____________________...")
 
m (Text replacement - "↵↵</sqf>" to " </sqf>")
 
(63 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 0.50


|0.50|= Game version
|gr1= Environment
____________________________________________________________________________________________


| Return the current humidity value. |= Description
|descr= Returns the current humidity value. 0 is no humidity and 1 is 100% humidity. Humidity value quickly changes from 0 to 1 when rain starts, then slowly changes from 1 to 0 when rain stops.
____________________________________________________________________________________________


| '''humidity''' |= Syntax
|s1= '''humidity'''


| [[Number]] |= RETURNVALUE
|r1= [[Number]]


|x1= <sqf>currentHumidity = humidity;</sqf>


|x1= <code>
|x2= <sqf>
</code>|= EXAMPLE1
skipTime -24;
86400 setOvercast 1;
skipTime 24;
0 spawn {
10 setRain 1;
sleep 10;
10 setRain 0;
};
onEachFrame {
hintSilent str [round (rain * 10) / 10, round (humidity * 10) / 10];
};
</sqf>


____________________________________________________________________________________________
|seealso= [[setHumidity]] [[simulSetHumidity]] [[setOvercast]] [[setRain]] [[rain]] [[overcast]] [[fog]] [[wind]] [[waves]]
 
|  |= SEEALSO
 
|= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 19:48, 3 September 2024

Hover & click on the images for description

Description

Description:
Returns the current humidity value. 0 is no humidity and 1 is 100% humidity. Humidity value quickly changes from 0 to 1 when rain starts, then slowly changes from 1 to 0 when rain stops.
Groups:
Environment

Syntax

Syntax:
humidity
Return Value:
Number

Examples

Example 1:
currentHumidity = humidity;
Example 2:
skipTime -24; 86400 setOvercast 1; skipTime 24; 0 spawn { 10 setRain 1; sleep 10; 10 setRain 0; }; onEachFrame { hintSilent str [round (rain * 10) / 10, round (humidity * 10) / 10]; };

Additional Information

See also:
setHumidity simulSetHumidity setOvercast setRain rain overcast fog wind waves

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