setWindDir: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<!-- Note Section [A-Z]+ --> " to "")
No edit summary
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3
|game1= arma3


|0.50
|version1= 0.50


|gr1= Environment
|gr1= Environment
Line 9: Line 9:
|eff= global
|eff= global


| Changes the wind direction smoothly during the given time (in seconds). A time of zero means there will be an immediate change.  <br>
|descr= Changes the wind direction smoothly during the given time (in seconds). A time of zero means there will be an immediate change.  <br>
'''NOTE''': Effect is global only when executed on the server. On clients wind direction will sync to server value in a while.
'''NOTE''': Effect is global only when executed on the server. On clients wind direction will sync to server value in a while.


| time '''setWindDir''' value
|s1= time '''setWindDir''' value
 
|p1= time: [[Number]]
|p1= time: [[Number]]
|p2= value: [[Number]] - Azimuth.
|p2= value: [[Number]] - Azimuth.
|r1= [[Nothing]]


| [[Nothing]]
|s2= '''setWindDir''' direction
|p21= direction: [[Array]] - Flat wind direction '''and force''' in format [[Position2D]]
|r2= [[Nothing]]


|x1= <code>60 '''setWindDir''' 180</code>
|x1= <code>60 '''setWindDir''' 180</code>
|x2= <code>'''setWindDir''' [1,-15]</code>


| [[windDir]]
| [[windDir]]

Revision as of 23:38, 27 April 2021

Hover & click on the images for description

Description

Description:
Changes the wind direction smoothly during the given time (in seconds). A time of zero means there will be an immediate change.
NOTE: Effect is global only when executed on the server. On clients wind direction will sync to server value in a while.
Multiplayer:
Execute on server
Groups:
Environment

Syntax

Syntax:
time setWindDir value
Parameters:
time: Number
value: Number - Azimuth.
Return Value:
Nothing

Alternative Syntax

Syntax:
setWindDir direction
Parameters:
direction: Array - Flat wind direction and force in format Position2D
Return Value:
Nothing

Examples

Example 1:
60 setWindDir 180
Example 2:
setWindDir [1,-15]

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
Posted on April 12, 2014
Waffle SS.
Seems to make wind [0,0] in MP. (Arma 3 1.00)