top of page

MAKE LOCAL SOUND LISTENABLE BY ALL PLAYERS ON SERVER BY ACTION

To make a located (3D) sound that everybody (all connected players) can heard on your server, follow this process :

​

​

1-Place an object that you will use as source of your sound (for exemple empty helipad) and name it (in our exemple will will take alarm1 as name.

​

2-If you want to activate this sound from a computer for exemple, place your computer somewhere, and, in its INIT box, write following sentence :​

​

this addAction["TEST ALARM", {([alarm1,["Sirenair", 1500, 1]] remoteExec ["say3d",0,true]);}];

​

 

​

When you will go in front off your computer, an option "TEST ALARM" will be selectable. Click on this option and the sound Sirenair will be activated and listenable for all players on your server in the 1500 meters around the source alarm1

​

​

​

Note :

​

TEST ALARM is the name you want to show on your computer (placed on map) option, you can choose anything you want.

​

Sirenair is the name of the sound (sound configured in your description.ext, you can find explication there https://armadatabase.wixsite.com/armadb/s21 )

​

alarm1 is the name of your object that you want as sound source

​

1500 is the distance the sound can be hearable

​

remoteExec ["say3d",0,true] is the command that make the sound listenable by every players on your server

​

​

​

​

​

​

To make sound listenable at severals location in same time, through addaction command, place in the INIT box of your computer (or other) : 

​

this addAction["Activate Alarm", {

[alarmFB2, ["Sirenair", 1500, 1]] remoteExec ["say3d", 0, true];

[alarmFB3, ["Sirenair", 800, 1]] remoteExec ["say3d", 0, true];

[alarmFB4, ["Sirenair", 1500, 1]] remoteExec ["say3d", 0, true];

}];

​

​

AlarmFBX are the named objects designated as sources of your sound (distance hearable can be change)

Sound "Sirenair" will be played on alarmFB2, alarmFB3 and alarmFB4 named objects

​

​

​

​

​

To make this sound listenable and repeatable with distance and timer, use the following code in your object INIT :

​

nul = [this] spawn {while {true} do {[(_this select 0),["ALARM", 40, 1]] remoteExec ["say3d",0,true];uisleep 12;};};

​

ALARM is the sound name

40 is the distance

12 is the time between the sound repeat

bottom of page