{"name":"setWind","title":"setWind","type":"command","url":"https://community.bistudio.com/wiki/setWind","revid":348903,"updated":"2023-11-08T14:39:59Z","groups":["Environment"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","locality":{"effect":"global"},"description":"Set current or permanent wind vector.\n\n> [!IMPORTANT]\n> The effect is global only if it is executed on the server. Wind set locally will sync back to server value in a while.","syntaxes":[{"syntax":"setWind [x, y, forced]","params":[{"name":"x","type":"Number","description":"easterly component (in m/s, positive = to the east)","type_expr":"Number"},{"name":"y","type":"Number","description":"northerly component (in m/s, positive = to the north)","type_expr":"Number"},{"name":"forced","type":"Boolean","optional":true,"default":"false","description":"set to true to lock the wind to constantly blows in set direction","type_expr":"Boolean","text":"forced: Boolean - (Optional, default false) set to true to lock the wind to constantly blows in set direction"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"[x, y, forced]"}}],"examples":[{"code":["setWind [10, 10, true];"]}],"see_also":["wind","setWindDir","gusts","setGusts"]}