Files
DayZ-Epoch/SQF/dayz_code/system/scheduler/sched_playerActions.sqf
A Man b6c7364c56 Update combat handling
- Remove startcombattimer variable
- Add combatNoTimeout variable to handle a combat without a time limit
2022-06-26 15:57:15 +02:00

18 lines
415 B
Plaintext

#include "scheduler.hpp"
sched_playerActions = {
HIDE_FSM_VARS
if (!dayz_actionInProgress) then {
call fnc_usec_selfActions;
call fnc_usec_damageActions;
};
//combat check
if ((player getVariable ["combatTimeout",0] < diag_tickTime) && {player getVariable ["inCombat",false]} && {player getVariable["combatNoTimeout", 0] == 0}) then {
player setVariable ["inCombat", false, true];
};
objNull
};