{"name":"setWindDir","title":"setWindDir","type":"command","url":"https://community.bistudio.com/wiki/setWindDir","revid":377549,"updated":"2026-01-02T06:54:45Z","groups":["Environment"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","locality":{"effect":"global","server_exec":true},"description":"Changes the wind direction smoothly.","syntaxes":[{"syntax":"time setWindDir value","params":[{"name":"time","type":"Number","description":"transition time in seconds. `0` will cause the change to be immediate","type_expr":"Number"},{"name":"value","type":"Number","description":"azimuth","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"time"},"right":{"text":"value"}},{"syntax":"setWindDir direction","params":[{"name":"direction","type":"Position2D","description":"flat wind direction and strength","type_expr":"Position2D"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"direction"}}],"examples":[{"code":["60 setWindDir 180;"]},{"code":["setWindDir [1, -15];"]}],"multiplayer":"Effect is global only when executed on the server. On clients wind direction will sync to server value in a while.","see_also":["windDir"],"notes":[{"user":"Waffle SS.","date":"2014-04-12T20:46:00Z","text":"Seems to make wind [0, 0] in MP. (Arma 3 v1.00)"}]}