humidity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


Line 15: Line 15:




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


____________________________________________________________________________________________
____________________________________________________________________________________________


| |= SEEALSO  
| [[simulSetHumidity]], [[setOvercast]], [[setRain]] |= SEEALSO  


|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  

Revision as of 01:57, 25 August 2013

Hover & click on the images for description

Description

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

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:
simulSetHumiditysetOvercastsetRain

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

Notes

Bottom Section