setHumidity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|branch= dev " to "")
m (Some wiki formatting)
 
Line 8: Line 8:


|descr= Sets surface humidity. Affects how footsteps sound (dry / wet). [[humidity]] is increasing when raining and decreasing when not raining. Exception is if the rain is set with 'snow' flag, then [[humidity]] is not updated.
|descr= Sets surface humidity. Affects how footsteps sound (dry / wet). [[humidity]] is increasing when raining and decreasing when not raining. Exception is if the rain is set with 'snow' flag, then [[humidity]] is not updated.


|s1= [[setHumidity]] humidity
|s1= [[setHumidity]] humidity


|p1= humidity: [[Number]] - surface humidity in the range 0...1
|p1= humidity: [[Number]] - surface humidity in the range 0..1


|r1= [[Nothing]]
|r1= [[Nothing]]


 
|x1= <sqf>setHumidity 1;</sqf>
|x1= <code>[[setHumidity]] 1;</code>
 


|seealso= [[humidity]] [[setRain]]
|seealso= [[humidity]] [[setRain]]
}}
}}

Latest revision as of 11:45, 3 May 2022

Hover & click on the images for description

Description

Description:
Sets surface humidity. Affects how footsteps sound (dry / wet). humidity is increasing when raining and decreasing when not raining. Exception is if the rain is set with 'snow' flag, then humidity is not updated.
Groups:
Environment

Syntax

Syntax:
setHumidity humidity
Parameters:
humidity: Number - surface humidity in the range 0..1
Return Value:
Nothing

Examples

Example 1:
setHumidity 1;

Additional Information

See also:
humidity setRain

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