Home   Help Search Login Register  

Author Topic: Playing more than one song in a trigger?  (Read 521 times)

0 Members and 1 Guest are viewing this topic.

FAM9

  • Guest
Playing more than one song in a trigger?
« on: 26 Oct 2002, 00:48:02 »
I have my own music playing beautifully, but I would like this one trigger to play three songs, one after the other.  Is this possible, and if so what's the script I woud\ld put in the init box?  I tried playmusic "music"; this playmusic "music1", that did not work.

I tried playmusic "music", playmusic "music1"

It played the second song, and not the first ???

Thanks :)

seanver

  • Guest
Re:Playing more than one song in a trigger?
« Reply #1 on: 27 Oct 2002, 01:57:20 »
No, I don't think you can do that in only one trigger. But you can create a trigger. PUt in the trigger's condition field "true" if you want to play the music from the beginning, or put whatever condition you want.

Now in the On Activation field put:
[] exec "music.sqs"

Now go to your mission's folder and create a file called music.sqs

Now put this:


playmusic "music1" <== put betwenn the " " the name of the first song

~x    <== here put the lenght in seconds of the song

playmusic "music2"  <= the name of the song

~x    <== and the lenght of the song in seconds

playmusic "music3"    <= the name of the third song
exit

FAM9

  • Guest
Re:Playing more than one song in a trigger?
« Reply #2 on: 01 Nov 2002, 03:10:03 »
Thanks for the response.

I thought about editing a couple of songs so they were one .ogg file.  But that makes me cautious as it will probably be one VERY large file for a cople of short edited songs.  I'm trying to follow what you told me, I'm very new at this and not sure of what to do.  How bout this?  I tried to create a copule of triggers in the same spot with the countdown activated, but that is not working either.  Each trigger is a shortend song and I put the delay at diferent intervals.  One triggers delay is 4 minutes.  That to is not working.  I realize this is a pain in the ass to answer so if you can help, great!  If not, then my map will be what it is.

Thanks