Search the Community
Showing results for tags 'publicVariableServer'.
Found 2 results
Hello, I'm fairly new at multiplayer scripting on dedicated servers. I just learned that some commands don't work on dedicated servers so I've just been trying to cover every basis to make sure my scripts work on dedicated by using both publicvariable and publicvariableserver for every variable I create. I'm now getting to where I have so many variables I'm worried that I may be unnecessarily affecting performance by adding both of these commands to each variable. Would someone like to clarify this for us? Does publicvariableserver only send the variable to the server or does it also send the variable to each client computer as well as the server? Any info is appreciated very much :-)
sarogahtyp posted a topic in ARMA 3 - MISSION EDITING & SCRIPTINGI ve some vehicles with variables in their variable space and I want to have them broadcasted betwenn headless client (HC) and server. _squad setVariable["respawtime", 300]; I know that i could set the parameter public to true to broadcast it to all. _squad setVariable["respawnable", 300, true]; But thats more network traffic than I need. Is there a way to use publicVariableServer and publicVariableClient to broadcast that variable? Or is the variable also transferred if I use setOwner to transfer the ownership between server and HC? Thanks a lot for any advice.