guziczek101 11 Posted December 30, 2011 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
nikiller 18 Posted December 30, 2011 (edited) hi, guziczek101 said: 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 Reveal hidden contents 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 December 30, 2011 by Nikiller Share this post Link to post Share on other sites