Reezo 45 Posted March 25, 2011 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
CarlGustaffa 4 Posted March 25, 2011 Locality. The say command has to be issued on all clients. Share this post Link to post Share on other sites
Reezo 45 Posted March 25, 2011 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
CptBBQ 10 Posted March 26, 2011 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
2nd ranger 282 Posted March 27, 2011 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
Reezo 45 Posted March 30, 2011 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
VirusLIVED 10 Posted April 17, 2011 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
God of Monkeys 14 Posted May 6, 2011 Me to,who can help us? Share this post Link to post Share on other sites
celery 8 Posted May 6, 2011 _unit setVehicleInit "this say 'sound'";processInitCommands Share this post Link to post Share on other sites
.kju 3245 Posted May 6, 2011 Read also: What can I use best for networked events? (PublicVariableEventHandler, setVehicleInit or else) Share this post Link to post Share on other sites