Hello everybody! One question, how can I stop playLocalSound?
Hello everybody! One question, how can I stop playLocalSound?
raphael (21st March 2023)
One more question: how can i stop ambientPlay? AmbientStop() doesnt work in multiplayer.
kung foo man (19th January 2013)
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)
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:
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.
zzzz_myins_sounds.iwd
//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
Last edited by Cz3koladowyPotwor; 19th January 2013 at 17:53.
EvoloZz (19th January 2013),kung foo man (19th January 2013),Ni3ls (19th January 2013),raphael (21st March 2023)
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)
kung foo man (5th March 2013)
Can I ask a question? What's the difference between PlaySound and PlayLocalSound?