With regards to script timing, how would it look if I wanted to sync mission parameters to all the clients before the assets are loaded. I have global vars in vehicle inits which sometimes seem to run before the server has a chance to init these vars?
I was told elsewhere that I should use cfgFunctions but I'm not sure what that would look like.
I'm using the following in my init.sqf:
for [{_i = 0}, {_i < count(paramsArray)}, {_i = _i + 1}] do {
_param = (configName ((missionConfigFile >> "Params") select _i));
_value = (paramsArray select _i);
format["%1 = %2", _param, _value] call BIS_fnc_log;
call compile format ["%1 = %2; publicVariable ""%1""", (configName ((missionConfigFile >> "Params") select _i)), (paramsArray select _i)];
};