Arma 3 Scripting

Command in Environment

humidity

Also available as Markdown and JSON, or read the original wiki page.

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.

Syntax

humidity

Returns: Number in range 0..1

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

See also

setHumidity · simulSetHumidity · setOvercast · setRain · rain · overcast · fog · wind · waves