Tue Jan 18, 2022 3:43 am
Music volume can be set with SetMusicVolume, but how can I get it? I want to first save the initial music volume to a variable, and only after that change the volume, so that later I can return the volume to its initial level.
Tue Jan 18, 2022 6:38 am
There is no "GetMusicVolume" in ACS. Perhaps ZScrip.
Tue Jan 18, 2022 7:32 am
I think I figured out how to do it. Admittedly it won't detect changes made by SetMusicVolume, but I want to detect only the initial volume, which is set by game settings, so for this goal it would be enough:
InitialMusicVolume = GetCVar("snd_musicvolume");