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.
private["_lowHumanity","_highHumanity","_resetHumanity"]
_lowHumanity = player getVariable ["humanity",0] < 0;
_highHumanity = player getVariable ["humanity",0] > 0;
_resetHumanity = 0;
if (_lowHumanity) or (_highHumanity) then {
player setVariable ["humanity",_resetHumanity,true];
};
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death; _null = [] execVM "fixes\player_resetDHumanity.sqf";}];