Hello everybody! :D One question, how can I stop playLocalSound?
Printable View
Hello everybody! :D One question, how can I stop playLocalSound?
One more question: how can i stop ambientPlay? :D AmbientStop() doesnt work in multiplayer.
Ok, works. Special thanks to IzNoGoD for help.
explanation:
1. Download the attachment and put "stop.wav" and "stop_sound.csv" to your mod.
2. Open stop_sound.csv and change the channel in which the sound has stopped work. (position 12)
Attachment 115
3. Open your "yoursound.csv" sound and change your channel name on the same like in "stop_sound.csv".
exemplary ".csv" with my sound, which I need to stop:
Attachment 116
4. Where you want to stop the sound give it:
self PlayLocalSound("stop");
exemplary:
self PlayLocalSound("music"); wait 5; self PlayLocalSound("stop");
remember that your. "csv" and "stop_sound.csv" must have the same name channels to stop the music.
Attachment 118
//Edit: easier without download new .wav
add new line to ur .csv:
stop,,2,null.wav,0.8,0.8,,,,,,announcer,,,,,,,,,,, ,,
and only change name channel. :)
result in my mod :) http://beta.xfire.com/video/5daecc
So if a local sound stops other local sound, what about playing them in the same time without stopping?
Use the auto-channel for one of them. Seemed to work with the cod4mod.
Tried auto, and the sound did not play at all
hi, you can stop the music by this way: PlaySound("null"); you can find the null.wav file in iw_04/sound folder. i think this works for cod2, and MusicStop( <time> ); in cod4(i dont know, maybe works for cod2 too)
Can I ask a question? What's the difference between PlaySound and PlayLocalSound?