OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Hate on 03 Mar 2004, 19:23:10

Title: Music script for Heli ride ???????
Post by: Hate on 03 Mar 2004, 19:23:10
PLEASE...........
                       Can you give me an example of how I can start a song at a heli load ....  and stop at a heli transport unload !!!!!!!!!!!

been trying for a week and it`s p*****g me off BIGtime!!!

pretty please ????

 :-[
Title: Re:Music script for Heli ride ???????
Post by: The-Architect on 03 Mar 2004, 21:39:00
I know what you mean man I tried it with "A hard day's night" by the Beatles.
I tried for ages.
Please could someone help us. I believe that both of us can start the track but not have it stop. Correct me if I'm wrong.  ???
Title: Re:Music script for Heli ride ???????
Post by: Blanco on 03 Mar 2004, 22:15:32
 What's the problem?
 ???
...fade it out at the loadout

somethin' like :

Quote
10 fademusic 0
~10
Title: Re:Music script for Heli ride ???????
Post by: alimag on 06 Mar 2004, 22:57:57
Hi,

Just put this in the init field of the chopper:

this adEventHandler ["getin", {this removeAllEventHandlers "getin";playMusic "TRACK"}]; this addEventHandler ["getout", {this removeAllEventHandlers "getout";0 fadeMusic 0}]

Just replace TRACK with the class name of your music.

Cheers
Title: Re:Music script for Heli ride ???????
Post by: Hate on 07 Mar 2004, 21:04:31
will try

Thanks :-[
Title: Re:Music script for Heli ride ???????
Post by: Hate on 07 Mar 2004, 21:26:23
It works !!!!!!!!!!!!!!!!!!!!

I am forever in your debt
I`ve been asking for this help for f*****g ages!!!!!!!!!!!!

Thankyou VERY much you are a GOD!

Hate
Title: Re:Music script for Heli ride ???????
Post by: SandVoss on 06 May 2004, 16:04:13
There is actually a much easier way of solving this problem... Get the music to start in the 'Load' waypoint by going into that sounds&cameras menu of the waypoint, and select your music there in the pulldown menu. Then, at the "unload" waypoint, simply replace the music in the pulldown menu with "no music", or silence.