humidity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|" to "|")
m (Text replacement - "<sqf>([^ ]+) <\/sqf>" to "<sqf>$1</sqf>")
 
(31 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3
|game1= arma3
 
|version1= 0.50
|0.50


|gr1= Environment
|gr1= Environment


| 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.
|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'''
|s1= '''humidity'''


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


|x1= <code>currentHumidity = [[humidity]];
|x1= <sqf>currentHumidity = humidity;</sqf>
</code>


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


|seealso= [[simulSetHumidity]], [[setOvercast]], [[setRain]], [[rain]], [[overcast]], [[fog]], [[wind]], [[waves]]
|seealso= [[setHumidity]] [[simulSetHumidity]] [[setOvercast]] [[setRain]] [[rain]] [[overcast]] [[fog]] [[wind]] [[waves]]
}}
}}

Latest revision as of 12:04, 13 May 2022

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; [] 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