humidity: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|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. | | 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''' | | '''humidity''' | ||
| [[Number]] | | [[Number]] | ||
|x1= <code>currentHumidity = [[humidity]]; | |x1= <code>currentHumidity = [[humidity]]; | ||
</code> | </code> | ||
|x2= <code>[[skipTime]] -24; | |x2= <code>[[skipTime]] -24; | ||
Line 28: | Line 28: | ||
[[hintSilent]] [[str]] [<nowiki/>[[round]] ([[rain]] * 10) / 10, [[round]] ([[humidity]] * 10) / 10]; | [[hintSilent]] [[str]] [<nowiki/>[[round]] ([[rain]] * 10) / 10, [[round]] ([[humidity]] * 10) / 10]; | ||
}; | }; | ||
</code> | </code> | ||
| [[simulSetHumidity]], [[setOvercast]], [[setRain]], [[rain]], [[overcast]], [[fog]], [[wind]], [[waves]] | | [[simulSetHumidity]], [[setOvercast]], [[setRain]], [[rain]], [[overcast]], [[fog]], [[wind]], [[waves]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:42, 18 January 2021
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
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