OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Zombie on 01 Jul 2003, 00:35:28

Title: Built in Music
Post 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?
Title: Re:Built in Music
Post by: Captain Winters on 01 Jul 2003, 00:55:30
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)
Title: Re:Built in Music
Post by: Zombie on 01 Jul 2003, 01:43:24
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
Title: Re:Built in Music
Post by: Captain Winters on 01 Jul 2003, 01:59:57
Then just do this from a script:

playMusic "Music Title"
~Time Of Music To Last (Seconds)
03 fadeMusic 0

Sould work great

Tanks! 8)
Title: Re:Built in Music
Post by: Zombie on 01 Jul 2003, 02:17:31
OK, thanks!  I'll try it out
Title: Re:Built in Music
Post by: Zombie on 01 Jul 2003, 11:03:48
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?
Title: Re:Built in Music
Post by: Knut Erik on 01 Jul 2003, 12:17:31
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
Title: Re:Built in Music
Post by: Zombie on 01 Jul 2003, 22:53:31
Perfect!  that was the answer.  I tried Track1  - Main Theme and it failed, but just Track(#) did it.  Appreciate the assist