setRain: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETRAIN]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SETRAIN]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SETRAIN]]


| ofpr |= Game name


<h2 style="color:#000066">'''''time'' setRain ''rainDensity'''''</h2>
|1.75|= Game version
____________________________________________________________________________________________


| Set rain density smoothly during the given time (in seconds). A time of zero means an immediate change. A rain level of zero is no rain and a rain level of one is maximum rain Rain is not possible when overcast is smaller than 0.7. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| time '''setRain''' rainDensity |= Syntax


'''time:''' [[Number]]
|p1= time: [[Number]] |= Parameter 1


'''rainDensity:''' [[Number]]
|p2= rainDensity: [[Number]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>60 setRain 1</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Added in version '''1.75'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Set '''rain''' density smoothly during the given '''time''' (in seconds).
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SETRAIN]]
A time of zero means an immediate change.
[[Category:Scripting Commands OFP 1.96|SETRAIN]]
 
[[Category:Scripting Commands ArmA|SETRAIN]]
A rain level of zero is no rain and a rain level of one is maximum rain
 
Rain is not possible when overcast is smaller than 0.7.
 
 
'''Example:'''
 
60 '''setRain''' 1

Revision as of 23:27, 1 August 2006

Hover & click on the images for description

Description

Description:
Set rain density smoothly during the given time (in seconds). A time of zero means an immediate change. A rain level of zero is no rain and a rain level of one is maximum rain Rain is not possible when overcast is smaller than 0.7.
Groups:
Uncategorised

Syntax

Syntax:
time setRain rainDensity
Parameters:
time: Number
rainDensity: Number
Return Value:
Nothing

Examples

Example 1:
60 setRain 1

Additional Information

See also:
See also needed

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