Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Music/Sound playing

Page: 1 of 1
 silkkmonkey
01-31-2004, 7:40 PM
#1
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)
 wedge2211
01-31-2004, 8:17 PM
#2
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.
 silkkmonkey
01-31-2004, 10:31 PM
#3
is there anyway to make it play over the entire map one at a time without having to put all those target_speaker entities everywhere?
 silkkmonkey
01-31-2004, 10:36 PM
#4
Also, how many speakers would i need to fill out a decent size room?
 wedge2211
02-01-2004, 12:03 AM
#5
To make a target_speaker play over a whole level, just check the "GLOBAL" spawnflag. As for enough to fill a room...you'll have to experiment to find a volume that you like.
 silkkmonkey
02-02-2004, 3:33 AM
#6
What should my triggers say?
 silkkmonkey
02-03-2004, 2:50 AM
#7
*BUMP*
 silkkmonkey
02-04-2004, 12:43 AM
#8
*BUMP*


SOMEONE ANSWER THE QUESTION!!!
Page: 1 of 1