OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Zombie on 01 Jul 2003, 00:35:28
-
Some of the built in music tracks, trigger/effects/music, are great but they last too long. How can I get them to stop after a certain amount of time?
-
You should just be able to use these command:
<time to fade> fadeMusic <music volume>
should work fine. it always does for me ;)
Tanks! 8)
-
thanks, makes sense, but umm, where do I put the command? I am calling the music frfom the effects of the trigger, not from a script
-
Then just do this from a script:
playMusic "Music Title"
~Time Of Music To Last (Seconds)
03 fadeMusic 0
Sould work great
Tanks! 8)
-
OK, thanks! I'll try it out
-
It seems the music has to be described in the description.ext to work this way. Since it is a 'Built in" track seems like I shouldn't have to do this, ideas?
-
playMusic "Music Title"
~Time Of Music To Last (Seconds)
03 fadeMusic 0
Okay...
To play the music, the playMusic command works like this.
If you want to play track 1, it is playMusic "Track1"
Track2
Track3
Track4
And so on.
The res music is called like this
Rtrack1
Rtrack2
Rtrack3
The 7th songs is called like this
7thDarken
7thMyLife
7thDecide
This should work :D
-
Perfect! that was the answer. I tried Track1 - Main Theme and it failed, but just Track(#) did it. Appreciate the assist