{"name":"fadeMusic","title":"fadeMusic","type":"command","url":"https://community.bistudio.com/wiki/fadeMusic","revid":376977,"updated":"2026-01-01T06:06:52Z","groups":["Sounds"],"status":"ok","games":{"ofp":"1.00","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.00","arma3_since":"0.50","locality":{"effect":"local"},"description":"Changes the current music volume to the given value smoothly within the given time.\n\n> [!NOTE]\n> The player's in-game setting is not changed by this command: `Final Volume = Client Setting * Scripted Volume`.","syntaxes":[{"syntax":"time fadeMusic volume","params":[{"name":"time","type":"Number","description":"fade interval in seconds","type_expr":"Number"},{"name":"volume","type":"Number in range 0..5","description":"music volume","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"time"},"right":{"text":"volume"}}],"examples":[{"code":["5 fadeMusic 0; // fade current music volume to 0 in 5 sec"]}],"see_also":["fadeSound","fadeRadio","fadeSpeech","fadeEnvironment","environmentVolume","musicVolume","soundVolume","radioVolume"]}