Jump to content
Sign in to follow this  
alleycat

Play sound on entire server?

Recommended Posts

I want to make a player emit a sound when he uses an action that can be heard in MP by all players. Using Say3D in the action script does not work because it is local.

Is there another way?

Share this post


Link to post
Share on other sites

Use say, not say3D anyway. say3d is for use in cutscenes. To get everyone to play it you'd run it on everyone's client via a trigger or function or something similar.

Share this post


Link to post
Share on other sites

//ENABLE GLOBAL SOUND

init.sqf

"GLB_Sound" addPublicVariableEventHandler
{
private ["_Gsound"];
_Gsound= _this select 1;
player say _Gsound;
};

Yourscript.sqf

GLB_Sound= "scuba_breath";
publicvariable "GLB_Sound";
player say GLB_Sound;

Don't know if this will 100% work but its how i would try and approach it

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  

×