I have added 2 music buttons in my map, both triggering a logic_timer (which I use to make the songs repeat since they are mp3s), which triggers an ambient_generic.
I want the currently playing song to shut up as soon as someone hits the other music button. This does work when I have the 'is NOT looped' flags unchecked. In this case though, the songs don't replay when the logic_timer refires.
When I uncheck the 'is NOT looped' flags on both ambient_generics, the songs DO repeat when they're finished, but now they won't switch each other off when the buttons are hit. I'm breaking my brains over this.
My settings
Button 1
logic_timer is named Folsomtimer
ambient_generic is named Folsomprison
Outputs:
OnDamaged: Folsomtimer Enable
OnDamaged: Folsomtimer FireTimer (with delay 0.01, seems to be necessary as enabling and firing at the same time sometimes doesn't work)
OnDamaged: looptimer Disable
OnDamaged: Soundplayer Stopsound
Button 2 (this is a toggle)
logic_timer is named looptimer
ambient_generic is named Soundplayer
Outputs:
OnIn: looptimer Enable
OnIn: Looptimer Firetimer
OnIn: Folsomtimer Disable
OnIn: Folsomprison Stopsound
I hope it's slightly clear like this, might be hard to understand because of the stupid names I give things
I want the currently playing song to shut up as soon as someone hits the other music button. This does work when I have the 'is NOT looped' flags unchecked. In this case though, the songs don't replay when the logic_timer refires.
When I uncheck the 'is NOT looped' flags on both ambient_generics, the songs DO repeat when they're finished, but now they won't switch each other off when the buttons are hit. I'm breaking my brains over this.
My settings
Button 1
logic_timer is named Folsomtimer
ambient_generic is named Folsomprison
Outputs:
OnDamaged: Folsomtimer Enable
OnDamaged: Folsomtimer FireTimer (with delay 0.01, seems to be necessary as enabling and firing at the same time sometimes doesn't work)
OnDamaged: looptimer Disable
OnDamaged: Soundplayer Stopsound
Button 2 (this is a toggle)
logic_timer is named looptimer
ambient_generic is named Soundplayer
Outputs:
OnIn: looptimer Enable
OnIn: Looptimer Firetimer
OnIn: Folsomtimer Disable
OnIn: Folsomprison Stopsound
I hope it's slightly clear like this, might be hard to understand because of the stupid names I give things