• Stoping sounds
    5 replies, posted
I'm making a sprint timer, and the mechanics are sll done, but i want it to play a heavy breathing sound, but the only one i can find the comes with gmod is a infinite loop. I know there used to be a code to stop a spesific sound, but i cant find on for gmod 13. any ideas? Thanks, Cole
This wiki is outdated, but this should work fine: [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index2c8b.html[/url]
[QUOTE=buu342;43726542]This wiki is outdated, but this should work fine: [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index2c8b.html[/url][/QUOTE] already tried that, not working
[QUOTE=MrColesnake20;43727193]already tried that, not working[/QUOTE] Can you show us the code?
If you're using EmitSound all you can really do is make the client execute the command stopsound, but that will stop all other sounds too. Otherwise you'll have to use: [url]http://wiki.garrysmod.com/page/Global/CreateSound[/url] which will return a CSoundPatch, which you can stop using: [url]http://wiki.garrysmod.com/page/CSoundPatch/Stop[/url]
[QUOTE=Jeezy;43727673]If you're using EmitSound all you can really do is make the client execute the command stopsound, but that will stop all other sounds too. Otherwise you'll have to use: [url]http://wiki.garrysmod.com/page/Global/CreateSound[/url] which will return a CSoundPatch, which you can stop using: [url]http://wiki.garrysmod.com/page/CSoundPatch/Stop[/url][/QUOTE] thanks, thats working
Sorry, you need to Log In to post a reply to this thread.