i need help fast

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Heinrich
Private
Posts: 1
Joined: Mon Dec 02, 2002 3:53 pm
Location: US

i need help fast

Post by Heinrich »

someone , i need help makin music, i got an mp3 file i just put on my comp, i need it to play as music while i play my map i just made, how do i make the script, and what do i name the script. please reply fast, Our lan party is tommaro
Innkeeper
Colonel
Posts: 475
Joined: Mon Nov 25, 2002 10:13 pm
Location: NC, USA (about 7.5 klicks from the capital dome)
Contact:

Post by Innkeeper »

creeate a .mus file in the music folder with your map's name.

Code: Select all

// yourmapname.mus

path sound/amb_stereo

normal your_new_music.mp3  // Default

!normal volume 1.0
!normal loop
!normal fadetime 2
In your map's script put:

Code: Select all

   level waittill prespawn

    //*** Precache Dm Stuff
   exec maps/dm/yourmapname_precache.scr

   level.script = "maps/dm/yourmapname.scr"

   exec global/ambient.scr yourmapname  <===== add this line

   level waittill spawn
Your new .mp3 must be put in the \MOHAA\main\sound\amb_stereo folder not in your .pk3. That means that everyone in the game must do the same.
Post Reply