jedders 10 Posted June 30, 2013 I've looked around and found that you used to be able to use the multiplayer framework for this. However for arma 3 they changed this I heard? How would I go about globally executing a globalChat script so that all players could see the text instead of the person who activated it in arma 3? Share this post Link to post Share on other sites
kylania 568 Posted June 30, 2013 Personally I'd use CBA for that. :) Or you can use triggers to run it on everyone's client. If it's just one message you could do that easily. Set up a trigger with the condition of: !isNil { sendMessage } and onAct of: hint "The game is afoot!"; Then wherever you have this being triggered from instead of hinting just do this: sendMessage = true; publicVariable "sendMessage"; The "sendMessage" variable wouldn't exist until it's given a value by that script. Once it does exist and everyone knows about it, via publicVariable, the trigger they all have on the map would set off and hint the message to them. Share this post Link to post Share on other sites
Johnson11B2P 3 Posted June 30, 2013 Use the BIS_fnc_MP to do it. ["wherEverMyScriptIs.sqf","BIS_fnc_execVM",true,false] spawn BIS_fnc_MP; The above code will work inside a script and it will execute for every client connected but not for clients the JIP. null = ["wherEverMyScriptIs.sqf","BIS_fnc_execVM",true,false] spawn BIS_fnc_MP; The above code will work inside a trigger to spawn globally. Share this post Link to post Share on other sites
LoonyWarrior 10 Posted June 30, 2013 Use the BIS_fnc_MP to do it.["wherEverMyScriptIs.sqf","BIS_fnc_execVM",true,false] spawn BIS_fnc_MP; The above code will work inside a script and it will execute for every client connected but not for clients the JIP. null = ["wherEverMyScriptIs.sqf","BIS_fnc_execVM",true,false] spawn BIS_fnc_MP; The above code will work inside a trigger to spawn globally. :) BIS_fnc_MP = step forward to Arma 3 BIS_fnc_execVM = step back to Arma 2 exec should be used only if u really need it ! if u use exec the code is compiled over and over and over, each time u use it... u should compile your function on the init and then use it from the memory where it stays compiled for whole mission... https://community.bistudio.com/wiki/execVM https://community.bistudio.com/wiki/compileFinal Share this post Link to post Share on other sites