humidity: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Lou Montana (talk | contribs) m (Text replacement - "↵↵</sqf>" to " </sqf>") |
||
(56 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 |= | |game1= arma3 | ||
|version1= 0.50 | |||
| | |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''' | ||
| [[Number]] | |r1= [[Number]] | ||
|x1= <sqf>currentHumidity = humidity;</sqf> | |||
| | |x2= <sqf> | ||
< | skipTime -24; | ||
86400 setOvercast 1; | |||
skipTime 24; | |||
86400 | 0 spawn { | ||
10 setRain 1; | |||
sleep 10; | |||
10 | 10 setRain 0; | ||
10 | |||
}; | }; | ||
onEachFrame { | |||
hintSilent str [round (rain * 10) / 10, round (humidity * 10) / 10]; | |||
}; | }; | ||
</ | </sqf> | ||
| | |seealso= [[setHumidity]] [[simulSetHumidity]] [[setOvercast]] [[setRain]] [[rain]] [[overcast]] [[fog]] [[wind]] [[waves]] | ||
}} | }} | ||
Latest revision as of 19:48, 3 September 2024
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:
- Example 2:
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