MP Sound
Moderator: Core Staff
-
- CJ Worshipper
- Posts: 492
- Joined: July 6th, 2006, 11:37 pm
- Location: The Netherlands
- Contact:
MP Sound
how do i add music to my map?
what i need to make in my radiant
i got the script i know how to modifie it
i know where my sound need to be
but what i got to place in the radiant?
trig_multiple
targetname
key: soundname ?
what i need to make in my radiant
i got the script i know how to modifie it
i know where my sound need to be
but what i got to place in the radiant?
trig_multiple
targetname
key: soundname ?
Cod 1 Mapper&Modder&Moddeler
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
This method plays the sound so that only the player that triggers it will hear it. The only mapping needed is to make a trigger:
Make sure your sound file is in .wav format, and is mono (1 channel)
Code: Select all
test()
{
trig = getent("trig","targetname"); //your trigger name
while (1)
{
trig waittill ("trigger",user);
user playlocalsound("yoursound"); //replace yoursound with the alias name in your csv file
wait 5; //change wait time to the length of sound or longer
}
}
-
- CJ Worshipper
- Posts: 492
- Joined: July 6th, 2006, 11:37 pm
- Location: The Netherlands
- Contact:
and how i do that and look if its 1 channel m8?Luke wrote: Make sure your sound file is in .wav format, and is mono (1 channel)
o and i like ur avatar

and is this the good csv ?
Code: Select all
null,1,null.wav,,,,,,,,,,,,,
#Custom sound aliases,,,,,,,,,,,,,,,
c_sound,,misc/test.wav,1,1,,,600,600,auto,,,nonlooping,,,
so this be the proper code?
Code: Select all
test()
{
trig = getent("trig","sound_trig"); //your trigger name
while (1)
{
trig waittill ("trigger",user);
user playlocalsound("c_sound"); //replace yoursound with the alias name in your csv file
wait 5; //change wait time to the length of sound or longer
}
}
Code: Select all
user playlocalsound("test")

Cod 1 Mapper&Modder&Moddeler
Right click on the .wav file, go to properties and click the summary tab.and how i do that and look if its 1 channel m8?
Not sure about your csv, it might be correct, but i've always used Microsoft excell to edit these files, and I don't know if the number of commas inbetween is important.
the word "test" i just used as the thread name, it has nothing to do with the name of the sound file, and not related to it.so this be the proper code?
Code:or thisCode: Select all
test() { trig = getent("trig","sound_trig"); //your trigger name while (1) { trig waittill ("trigger",user); user playlocalsound("c_sound"); //replace yoursound with the alias name in your csv file wait 5; //change wait time to the length of sound or longer } }
Code:Code: Select all
user playlocalsound("test")
In your csv your sound alias is "c_sound"
so your script should be
Code: Select all
user playlocalsound("c_sound")
Who is online
Users browsing this forum: No registered users and 4 guests