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

@@ -0,0 +1,12 @@
local _object = _this select 0;
local _setCombatOverTime = _this select 1;
if (_setCombatOverTime) then {
_object setVariable["combattimeout", diag_tickTime + DZE_CombatTimer];
} else {
_object setVariable["startcombattimer", 1];
};
if !(_object getVariable ["inCombat",false]) then {
_object setVariable ["inCombat",true,true];
};