Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Sgt. Stryker

Ambient sound

Recommended Posts

OK I searched these forums and i searched OFPEC and I still cant figure out how to put in my ouwn ambient sounds. For example I have a ogg file named rain.ogg I want that sound to always be plaing in my mission. I have tried everything and i cant fisure out what the hell is going wrong. Please someone help me it will be greatly appericated.

Share this post


Link to post
Share on other sites

Define it in your description.ext. Make a script to playsound "soundname" then loop it.

Share this post


Link to post
Share on other sites
sad_o.gif I am a little not to smart on how to do so. Could you perhaps explain a wee bit more? thank you.

Share this post


Link to post
Share on other sites

In your description.ext, put this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgEnvSounds

{

sounds[] = {rain};

class rain

{

name = "My rain sound";

sound[] = {"rain.ogg", db+10, 1.0};

soundNight[]={"rain.ogg", db+10, 1.0};

titles[] = {};

};

};

Then, in your mission, put a trigger with an Axis A and B of 0. In the Condition field, replace 'this' with 'true', so the trigger activates automatically, and in the Effects section of the trigger, there should be 'My rain sound' in the environment drop down box.

Hope this helps! smile_o.gif

[Gareth Gates must die]

Share this post


Link to post
Share on other sites

No prob. Always happy to help! smile_o.gif

[Gareth Gates must die]

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×