Hello,
i have a problem with global variables, works so far, but after reconnect the variables are empty. Someone know what the problem is?
init.sqf
if(isServer) then { [] execVM "myServerScript.sqf"; }; [] execVM "myClientScript.sqf";
myServerScript.sqf
my_var1 = true; publicVariable "my_var1"; my_var2 = floor(time); publicVariable "my_var2"; my_var3 = [ [8096.875, 7824.2896,0], [8241.0039, 7612.2881,0], [8935.9805, 7398.7944,0] ] call BIS_fnc_selectRandom; publicVariable "my_var3";
myClientScript.sqf
while {true} do { sleep 10; systemchat format["%1 || %2 || %3", my_var1, my_var3, my_var3]; };
Output looks like: true || 145256352 || 8096.875, 7824.2896,0
but after a player die and he reconnect, then it looks so: any || any || any
Can someone help?
I need these variables after reconnect.
thanks