Add new combat function

This commit is contained in:
A Man
2022-05-05 17:58:09 +02:00
parent 38f7e1d1c3
commit effb78fe13
5 changed files with 17 additions and 16 deletions

View File

@@ -9,7 +9,7 @@ sched_playerActions = {
};
//combat check
if ((player getVariable ["combattimeout",0] < diag_tickTime) && {player getVariable ["inCombat",false]}) then {
if ((player getVariable ["combattimeout",0] < diag_tickTime) && {player getVariable ["inCombat",false]} && {player getVariable["startcombattimer", 0] == 0}) then {
player setVariable ["inCombat", false, true];
};