OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Flauta on 02 Feb 2005, 19:07:31

Title: Music Truble
Post by: Flauta on 02 Feb 2005, 19:07:31
Hi there, Im making a mission that uses lots of ambient songs...  ::)
but i dont know if it is maybe possible to ;D ;D:
*Start/Stop Music whenever a Tigger is activated
*Reduce, Incrase Music Volume Whit a tigger or an action...

Im newbie on scripting :-\... but i get it a little whit Description.ext so tell me!!!!

Tanks Anyway ;)
Title: Re:Music Truble
Post by: THobson on 02 Feb 2005, 20:04:16
Look in the Editor's Dept. - Online references - Commands

Look for musicVolume and fadeMusic
Title: Re:Music Truble
Post by: O Neil on 04 Feb 2005, 07:00:18
Hey

To start music, either choose it in the trigger or in the init field type   playmusic "track1"   or whatever. To end it, do what I do, just fade the music out using   5 fademusic 0    . Five being the time it takes to fade out, zero being the volume (0-1 one being the loudest).

Then when you goto start a new peice of music, choose the music or type   playmusic "track2" and the type 0 fademusic 1.

eg:

To fadeout:

5 fademusic 0

To start a new track:

Playmusic "track2"; 0 fademusic 1

(O'Neil