Doolittle's Global Server Config
This addon is intended for server use only. Clients should not install.
This addon will run any commands found in globalserver.sqf (once, at the start) for any mission made with a map that has a runway light object on it (Land_Runway_PAPI). Right now this is only Sahrani. Please install the files like so:
C:\Program Files\Atari\ArmA\globalserver.sqf C:\Program Files\Atari\ArmA\AddOns\doogsc.pbo
This addon provides a special code called CreateLogicCode. If you send as an argument a string to this code it will execute on any client (player) connecting to the server at the start of the round or later on in the game (join-in-progress). This is a great way to set everyone to have the grass off, for example. What you have each client execute is up to you. Feel free to put any scripting commands you want in globalserver.sqf.
Understand the server runs the commands in globalserver.sqf, not the players. So if you want the players to setViewDistance 1400 for example, you will need to send this command in string format to CreateLogicCode like so, in globalserver.sqf:
"setViewDistance 1400" call CreateLogicCode;
If you just had this in globalserver.sqf:
setViewDistance 1400
That would only run for the server. Understand? For the advanced user, this is CreateLogicCode:
private ["_l"]; _l = "Logic" createVehicle [random 100, random 100]; _l setVehicleInit format ["[] spawn {%1}", _this]; processInitCommands;
Enjoy!
Doolittle |