Stop Music
5 replies



21.12.17 01:03:54 pm
I have 4 buttons each play different type of music
But when I press a button to start 1 song it keeps playing that song without stop when I press another song button
I want them to loop but I want the song that is currently playing to stop when a button is pressed for another song, so the other song starts playing
How do I do this in map edit without lua script code ?
But when I press a button to start 1 song it keeps playing that song without stop when I press another song button
I want them to loop but I want the song that is currently playing to stop when a button is pressed for another song, so the other song starts playing
How do I do this in map edit without lua script code ?
AFTERLIFE >>24/7<< Online Dedicated Zombie Server ~ Connect IP: 94.177.171.167
The lua code is bugged by cs2d, i have already reported it since 1.0.0.4.
The cs2d developing team seems like not caring to fix that bug either, so just wait til they fix it, maybe in 2 years idk
The cs2d developing team seems like not caring to fix that bug either, so just wait til they fix it, maybe in 2 years idk
wow ok
well that is quite disappointing
I will have to make a kill zone or a wall on other buttons once one is pressed so you can only choose 1 song during 1 round
well that is quite disappointing
I will have to make a kill zone or a wall on other buttons once one is pressed so you can only choose 1 song during 1 round
AFTERLIFE >>24/7<< Online Dedicated Zombie Server ~ Connect IP: 94.177.171.167
@
Promaster: The
sv_stopsound command is not bugged, you simply need to quote the sound name (change
@
CrazyPenguin: Unfortunately there's no way to do what you're asking using purely env_sound, but it's trivial to implement using Lua.


sv_stopsound sound.ogg 1
to sv_stopsound "sound.ogg" 1
). This is due to the way the CS2D command parser parses string arguments.@

I code, therefore I exist.

The lua code is bugged by cs2d, i have already reported it since 1.0.0.4.
You're bugged man
Eat Sleep Conquer Repeat. www.Radeon2D.forumid.net
Admin/mod comment:




