Update combat handling

- Remove startcombattimer variable
- Add combatNoTimeout variable to handle a combat without a time limit
This commit is contained in:
A Man
2022-06-26 15:57:15 +02:00
parent 36f5c8707a
commit b6c7364c56
11 changed files with 122 additions and 137 deletions

View File

@@ -260,12 +260,6 @@ while {1 == 1} do {
pickupInit = true;
};
_startcombattimer = player getVariable["startcombattimer", 0];
if (_startcombattimer == 1) then { //Do not use _PlayerNearby it makes building impossible, this is handled in player_onPause.sqf just fine
[player,true] call fnc_setCombat;
player setVariable["startcombattimer", 0, false];
};
uiSleep 2;
_myPos = player getVariable["lastPos",[]];