{"name":"setWindDir","operator":null,"title":"setWindDir","type":"command","url":"https://community.bistudio.com/wiki/setWindDir","revid":377549,"updated":"2026-01-02T06:54:45Z","groups":["Environment"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":"global","server_exec":true},"exec":null,"description":"Changes the wind direction smoothly.","syntaxes":[{"syntax":"time setWindDir value","since":null,"effect":null,"exec":null,"params":[{"name":"time","type":"Number","optional":false,"default":null,"description":"transition time in seconds. `0` will cause the change to be immediate","types":["Number"],"since":null,"text":"time: Number - transition time in seconds. `0` will cause the change to be immediate"},{"name":"value","type":"Number","optional":false,"default":null,"description":"azimuth","types":["Number"],"since":null,"text":"value: Number - azimuth"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"time","types":["Number"]},"right":{"text":"value","types":["Number"]}},{"syntax":"setWindDir direction","since":null,"effect":null,"exec":null,"params":[{"name":"direction","type":"Position2D","optional":false,"default":null,"description":"flat wind direction and strength","types":["Position2D"],"since":null,"text":"direction: Position2D - flat wind direction and strength"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"direction","types":["Position2D"]}}],"examples":[{"text":"```sqf\n60 setWindDir 180;\n```","code":["60 setWindDir 180;"]},{"text":"```sqf\nsetWindDir [1, -15];\n```","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.","problems":null,"aliases":[],"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)"}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Environment","Introduced with Arma 3 version 0.50","Scripting Commands","Scripting Commands: Global Effect","Scripting Commands: Server Execution"]}