Jump to content
Sign in to follow this  
guziczek101

ambient sounds

Recommended Posts

Hi i have a question:

is it possible to write a script that create random sounds (amb/env) on the random place's in the area of the map I mean for example, sounds of animals, people's screaming..

The triggers are disappear for some time and this is very annoying.

I mean for day will be other sounds and for night will be other

Share this post


Link to post
Share on other sites

hi,

Hi i have a question:

is it possible to write a script that create random sounds (amb/env) on the random place's in the area of the map I mean for example, sounds of animals, people's screaming..

The triggers are disappear for some time and this is very annoying.

I mean for day will be other sounds and for night will be other

You can do what you ask for without scripting. You just need a description.ext file in your mission folder and create a CfgEnvSounds class. This class makes sounds all around you, like wind or rain or battle sounds (without any fixed positioning). You can create a daytime sound, and a nighttime sound. The sound is looped automaticly. Create a folder named sound in your mission folder and put your ogg files here.

description.ext

class CfgEnvSounds
{
sounds[]={battle,bird};

class battle
	{
		name="battle";
		sound[]={"battleday.ogg",db+0,0,1};
		soundNight[]={"battlenight.ogg",db+0,0,1};
	};
class bird
	{
		name="bird";
		sound[]={"birdday.ogg",db+0,0,1};
		soundNight[]={"birdnight.ogg",db+0,0,1};
	};
};

cya.

Nikiller.

Edited by Nikiller

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  

×