{"name":"fadeEnvironment","title":"fadeEnvironment","type":"command","url":"https://community.bistudio.com/wiki/fadeEnvironment","revid":338929,"updated":"2023-04-17T15:30:39Z","groups":["Sounds"],"status":"ok","games":{"arma3":"2.04"},"since":"arma3 2.04","arma3_since":"2.04","locality":{"effect":"local"},"description":"Changes the master environment volume smoothly within the given time and is different from enableEnvironment global mute option. The default volume is 1.\nInfluenced sounds, among others, are:\n\n- forest sounds (birds, crickets, ...)\n- waves\n- wind\n- rain\n- object sounds (air conditioners, ...)\n- Arma 3 v2.06 thunder","syntaxes":[{"syntax":"time fadeEnvironment volume","params":[{"name":"time","type":"Number","description":"fade interval in seconds","type_expr":"Number"},{"name":"volume","type":"Number","description":"speech volume in range 0..1","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"time"},"right":{"text":"volume"}}],"examples":[{"code":["5 fadeEnvironment 0.1;"]}],"see_also":["environmentVolume","fadeSpeech","fadeRadio","fadeSound","fadeMusic","soundVolume","musicVolume","radioVolume","speechVolume","enableEnvironment","environmentEnabled"]}