#Is there a way to change the volume settings in and out of combat?

19 messages · Page 1 of 1 (latest)

hallow belfry
#

I am using an addon that play some custom combat music, so while in combat I need to have lower volume settings but while out of combat i need higher. Is any like that possible?

left pendant
#

/run C_CVar.SetCVar("Sound_MusicVolume", 1)

#

Type that in chat and check if it changes your music volume

#

Should work afaik. This sets it to 100%

hallow belfry
#

it does, i have 2 macros set up, i just want it to be automated

left pendant
#

Yeah, just wanted to check first

hallow belfry
#

/run SetCVar("Sound_SFXVolume", .3);SetCVar("Sound_AmbienceVolume", .4);SetCVar("Sound_MasterVolume", 1);SetCVar("Sound_MusicVolume",.3);SetCVar("Sound_DialogVolume",.5) print "Out of Combat"

#

this is what i have

left pendant
#

To automate it, just make any aura, go into the load tab, make it load only in combat.
Go to the trigger tab -> Player/Unit Characteristics -> Conditions -> "always active"

Go to the "actions" tab -> on show -> custom. Enter your command there, without the /run
So not /run C_CVar.SetCVar... but just C_CVar.SetCVar...

#

In actions -> on hide -> custom you can then revert it to the settings you want outside of combat

hallow belfry
#

ok testing it.

#

works

#

awesome!!! thank you so much

left pendant
#

Np, glad it worked out 🙂

hallow belfry
#

is theere a command to wait few seconds?

left pendant
#

Starts a timer

#
C_CVar.SetCVar("Sound_MusicVolume", 1) 
end)```
#

As an example would set music to 100% after 3s