OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: FAM9 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 :)
-
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
-
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