Jump to content
Sign in to follow this  
Reezo

Questions about Say/Say3D commands

Recommended Posts

Hi everyone,

I've recently made use of "say" and "say3d" commands to play custom sounds.

Problem is, not all units can hear the custom sound in MP..

1) sound script gets executed from a main script

2) main script and sounds scripts have no local check or IsServer checks

3) custom sounds have parameters of ,10,1 in description.ext

4) main script is executed from an action

Any clue? The person starting the action hears the sound but not the others..

Does a custom sound have to be executed server-side only for all players to hear it?

Thanks :) simple but annoying problem, this is..

Share this post


Link to post
Share on other sites
Locality. The say command has to be issued on all clients.

Thanks.

If this is the case:

Script inside an object init > action via scroll wheel > script > script with then SAY3D command

And all those scripts have NO locality limitation but the action starts from within an object, will it be executed on all clients?

Thanks!

Share this post


Link to post
Share on other sites

As I understand, addAction only executes the script on the client the action is used on.

If you´re using CBA you could do it with CBA_fnc_globalExecute

Works great for me :)

Share this post


Link to post
Share on other sites

Try having the action set true a variable and publicVariable it, then execute the main script from a trigger with that variable as a condition. Or try using the MP Framework.

Haven't used rSay before but maybe something like

_nul = [_this select 1, ObjectName, rSAY, "SoundName"] call RE;

Share this post


Link to post
Share on other sites

Thank you guys for the extensive information. I love how I can learn and improve by getting help from excellent programmers and developers in this community! Very rare for the average dumb-gaming environment.

Share this post


Link to post
Share on other sites

I'm having the same problem. I am trying to play a sound globally using the say command, yet no matter what I do, I can't get around it. Any examples out there that someone can provide?

Share this post


Link to post
Share on other sites

_unit setVehicleInit "this say 'sound'";processInitCommands

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  

×