Jump to content

Home

Music/Sound playing


silkkmonkey

Recommended Posts

Hi everybody,

 

I am currently in the process of making a prom/nightclub themed map, with a DJ booth. Inside the DJ booth I made buttons; which I want to play different music depending on which button i press. I have seperate (non stock) mp3s i want to use and I'm not sure how to make them play. :( :( :( :(

 

Please give like step by step instructions as I get easily confused. Thanks in advance.

 

(hint: using GTK radiant 1.4 or whatever the official 'stable' version is)

Link to comment
Share on other sites

If you want a certain music file playing all the time in your map, looped, as game music, then give your worldspawn the key "music" and value "music/musicFileName.mp3" then place your mp3 file in the pk3 under the music directory.

 

If you want the sound/music file to play only at certain times, then place it in the pk3, and make a target_speaker in-game. Give the target_speaker the key "noise" and value "music/musicFileName.mp3" as well as a key "delay" (or "wait," I forget which, check the entity window help) and a value that is longer than the sound file length, in milliseconds (1000ms = 1 second). Every time the target_speaker is triggered (by a func_button, trigger_multiple, or anything), the sound file will play, with the sound localized around the location of the target_speaker. To increase the sound volume, clone the target_speaker.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...