Skip to content

Instantly share code, notes, and snippets.

@headswe
Created October 20, 2015 10:39
Show Gist options
  • Save headswe/70ff5bdfad8d7653dc23 to your computer and use it in GitHub Desktop.
Save headswe/70ff5bdfad8d7653dc23 to your computer and use it in GitHub Desktop.
_prevFat = getFatigue player;
while{alive player} do {
_fat = getFatigue player;
_dfat = _fat - _prevfat;
if(_dfat < 0) then {
_unit setFatigue (_fat + _dfat/2);
};
_prevFat = getFatigue player;
uisleep 1;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment