OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Aquaphonic on 17 Jul 2004, 15:42:02

Title: Stopping Vehicle Music
Post by: Aquaphonic on 17 Jul 2004, 15:42:02
I have been currently experimenting with adding music to my vehicles a la BF Vietnam, using the "addaction" command. I can get the music to play but I can't seem to get it to stop.

I am using mono sound files and implementing them using the "say" command.

I just want a script that will fade THAT particular sound and not all game sounds like "fadesound" does. I've even tried:

setdammage 1;
setdammage 0;

But that just doesn't work.

Any suggestions appreciated.
Title: Re:Stopping Vehicle Music
Post by: Messiah on 17 Jul 2004, 16:37:45
make them say something else ;) like a blank file  :)

[edit]

by the way, remember that ofp doesn't like sound files too small... make sure its longer than 10secs i think
Title: Re:Stopping Vehicle Music
Post by: macguba on 17 Jul 2004, 16:45:03
Quote
by the way, remember that ofp doesn't like sound files too small...

I didn't know that.   What problem does it cause?
Title: Re:Stopping Vehicle Music
Post by: ponq on 17 Jul 2004, 18:06:27
OT:
I can add to that.
Though I never really knew it was this, but now I read this. I had a sound file ~2-3 secs long....everything alright...but ofp wouldn't play the sound. It did show the attached stringtable text...but no sound.
Title: Re:Stopping Vehicle Music
Post by: Messiah on 17 Jul 2004, 19:36:07
yes... ofp doesnt like short sound files... it just won't play them - i had to rack my brains and pull my hair out before Sui told me that short sound bytes are a no no for ofp - silly hey....  i think u have to have it longer than 10-15 secs or something like that... its easy enough, just add a 10 second silence after the sound you want - solves the problem.
Title: Re:Stopping Vehicle Music
Post by: Aquaphonic on 17 Jul 2004, 19:38:06
I'm sorry to say that doesn't work, my vehicle simply plays both tracks simultaneously.

I was hoping that the unit would stop playing its current track and change to the silent one or the silent one would play over the top of the initial one.

Thanks for the suggestion anyhow, I'm sure there's a workaround  :)
Title: Re:Stopping Vehicle Music
Post by: Messiah on 17 Jul 2004, 20:03:46
hmmmm... strange i guess only music can be 'overwritten' by a blank file...

ermm, not sure now...  :-\