top of page

MAKE LOCAL SOUND

To make local sound, for exemple with speaker with sound limited to 400 meters or with radio limited to 5 meters, you can follox theses steps :

​

​

​

​

WARNING : LOOK AT UPDATE PART DOWN

​

​

​

​

Option 1 : you want to make an ambient sound without area limit (sound area stop automaticly close to 500 meters)

​

Place

 

nul = [this] spawn {while {true} do {(_this select 0) say3D "sound_alarm"; sleep 30;};};

 

in the INIT box of the object (speaker for exemple)

​

Sound_alarm : the name of the sound that is configured in description.ext

30 : the time between the sound repeat

​

​

​

​

​

​

Option 2 : you want to make an ambient sound local and delimited (for exemple for a radio with 5 meters of distance)

​

Place

​

nul = [this] spawn {while {true} do {(_this select 0) say3D "sound_radio"; sleep 45;};};

​

in the INIT box of the object (radio for exemple)

​

Sound_radio : the name of the sound that is configured in description.ext

45 : the time between the sound repeat

​

AND

​

In the description.ext file of your mission, place following paragraph (adding to CfgSounds)

​

        class sound_radio
        {
                name = "sound_radio";
                sound[] = {"sons\sound_radio.ogg", 50, 1, 5};
                titles[] = {};
        };

​

5 : its the distance the sound will be heared

​

​

​

SCRIPT UPDATE FOR DESCRIPTION.EXT

​

​

​

Because of ARMA 3 update, the script below is more operationnal, please take this one below to not get error

​

​

In the description.ext file of your mission, place following paragraph (adding to CfgSounds)

​

​

        class speech1
        {
                name = "speech1";
                sound[] = {"sons\speech1.ogg", 6, 1};
                titles[] = {};
        };

​

​

6 is NOW the distance, 1 is the pitch (speed)

​

bottom of page