Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
_nul = [] execVM "light_fps_check.sqf";
waitUntil { alive player };
sleep 120; //waits 2 minutes to check if fps is good enough for lights
_fps = (round diag_fps);
_pass = 0;
//starts loop to check fps?
while {_pass == 0} do {
if ((_fps > 25) && (_pass == 0)) then {
if (isServer) then {
axe_server_lampObjs = compile preprocessFileLineNumbers "lights\fnc_returnLampWS.sqf";
"axeLampObjects" addPublicVariableEventHandler {_id = (_this select 1) spawn axe_server_lampObjs};
};
if (!isDedicated) then {
[] execVM "lights\street_lights.sqf";
[] execVM "lights\house_lights.sqf";
};
diag_log(format["FPS CHECK PASSED | LIGHTS ON FOR : %1",player]);
_pass = 1; //ends while loop?
} else {
_pass = 0;
diag_log(format["FPS CHECK FAILED FOR : %1 | RECHECKING IN 2 MINUTES",player]);
};
sleep 120; //every 2 minutes fps is rechecked for lights compatibility
};