{"name":"setWindStr","title":"setWindStr","type":"command","url":"https://community.bistudio.com/wiki/setWindStr","revid":370475,"updated":"2024-12-16T18:10:00Z","groups":["Environment"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","description":"Changes the wind strength smoothly during the given time (in seconds). A time of zero means there will be an immediate change.","syntaxes":[{"syntax":"time setWindStr value","params":[{"name":"time","type":"Number","type_expr":"Number"},{"name":"value","type":"Number","description":"new value in range 0..1","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"time"},"right":{"text":"value"}}],"examples":[{"code":["60 setWindStr 0.8; // set the wind strength to 0.8 gradually over the next 60 seconds"]}],"see_also":["setWind","setWindForce"],"notes":[{"user":"Sa-Matra","date":"2022-08-01T09:39:46Z","text":"This weird command affects `setFog` by limiting maximum number of fogValue you can have. If you do `0 setWindStr 1`, setting any fog with time > 0 will reduce the fog to 0 over provided time. Setting fog instantly with time = 0 will set the desired value properly though. The formula is: max fogValue = 1 - windStr"}]}