setWindDir

From Bohemia Interactive Community
Revision as of 23:38, 27 April 2021 by Leopard20 (talk | contribs)
Jump to navigation Jump to search
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)