OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Dubieman on 22 Apr 2005, 03:52:39

Title: Music effect
Post by: Dubieman on 22 Apr 2005, 03:52:39
Hello,

What I'm wondering about is if I can code a bit of music, say a 60 sec clip of a song and define it in the config as sound, not music. That way I wanted to have the player be able to get close to the origin of the sound and here the music, but as he moves away, it is harder to hear. I'm working with an idea about headphones coming off or something like that.

Thanks in advance
GRK
Title: Re:Music effect
Post by: Morglor9 on 22 Apr 2005, 06:39:57
basically, i think you can change the settings of the song clip into the right stuff for sounds. then, simply put the music clip into the description.ext defined as sound. it should work.
Title: Re:Music effect
Post by: 456820 on 22 Apr 2005, 18:31:09
or define it as a music in the description find a trigger and set the effects to
Sounds -
Trigger = "Music"

and make the song play when ever you want how ever and when he enters the trigger area the sound plays and gets quiter the further away you are
Title: Re:Music effect
Post by: Sui on 23 Apr 2005, 03:35:37
I'm pretty sure you can... you'll just need to give the file the same attributes as a sound file (ie. mono rather than stereo), and define it in the cfgsounds section of the .ext ;)
Title: Re:Music effect
Post by: Dubieman on 23 Apr 2005, 03:38:28
It'd work with triggers, but that's not the effect I'm thinking of.

I wanted to try and use the distance of sound in OFP. Like the sound is always there(until I shut it off), but if you get closer the music gets easier to hear and as you move further away its softer.

I should actually get around to testing this... ::)