Files
DayZ-Epoch/SQF/dayz_code/system/scheduler/sched_playerActions.sqf
2022-05-05 17:58:09 +02:00

18 lines
416 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["startcombattimer", 0] == 0}) then {
player setVariable ["inCombat", false, true];
};
objNull
};