setWindDir

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Hover & click on the images for description

Description

Description:
Changes the wind direction smoothly.
Multiplayer:
Effect is global only when executed on the server. On clients wind direction will sync to server value in a while.
Groups:
Environment

Syntax

Syntax:
time setWindDir value
Parameters:
time: Number - transition time in seconds. 0 will cause the change to be immediate
value: Number - azimuth
Return Value:
Nothing

Alternative Syntax

Syntax:
setWindDir direction
Parameters:
direction: Array - flat wind direction and strength in format Position2D
Return Value:
Nothing

Examples

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

Additional Information

See also:
windDir

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
Waffle SS. - c
Posted on Apr 12, 2014 - 20:46 (UTC)
Seems to make wind [0, 0] in MP. (Arma 3 v1.00)