I need help with custom sounds for my map ;o(
Moderator: Moderators
-
Stacey
I need help with custom sounds for my map ;o(
I want to make my own custom sounds and put them in my new map, ive put my map in deathmatch and get the gun sounds and all that stuff, but i want to add like music to the radio that i put in my map or trigger a sound for the alarm switch on the wall, things like that. Ive read the 2 sound turtorials and im so very confused. Can anyone please explain it to me how it works? I would be so greatful, making this map has been stressful and ive come so far, id hate for my map to lack my vision ;o( Please help. 
You need an entity to play the sounds. Preferrable use a script_model for this. Add it on the location where you want the sound to player, assign key model value fx/dummy.tik and for example key targetname value speaker. Then add a trigger that triggers the sound. Targetname it for instance 'soundtrigger'.
Then add the following thread to your map's script:
Finally add this line in your script below 'level waittill spawn':
where 'mysound' is the sound alias to use.
Then add the following thread to your map's script:
Code: Select all
playsound local.sound:
self waittill trigger
self playsound local.sound
end
Code: Select all
$soundtrigger thread playsound "mysound"
