Jump to content
ALPHIVE

How do i make autorepeat+distance say3D listenable by all players

Recommended Posts

Hi everybody,

 

To make autorepeat say3D, i use this command :

 

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

 

Every 12 second, the sound ALARM is played.

 

 

But how can i do, to  make this sound hearable by all players on my server and, how i must do to set a distance to this sound ?

 

I want that the sound ALARM :
-repeat each 12 seconds
-can be listened at 40 meters maximum

-Can be listened by players on my server (remote exec ?)

 

 

If you have a code line for this, thank you by advance guys ;)

 

  • Like 1

Share this post


Link to post
Share on other sites
6 hours ago, ALPHIVE said:

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

 

Hello there ALPHIVE !

 

I can't test this on right now , but probably it's ok,

try :

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

 

Share this post


Link to post
Share on other sites
On 5/31/2019 at 5:25 PM, ALPHIVE said:

Everything work perfectly, thank you all of you guys ! 

 

as i just notice you know how to do this , from the previous topic ,

or not ?

 

 

 

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

×