From 709a41abf8f3a1a1baeba4f494830f15a9701b43 Mon Sep 17 00:00:00 2001 From: "Mr. Zorn" Date: Sat, 7 Sep 2024 21:14:18 +0200 Subject: [PATCH] preperation for updateExectuionTime --- addons/common/fnc_updatePerFrameHandlerDelay.sqf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/common/fnc_updatePerFrameHandlerDelay.sqf b/addons/common/fnc_updatePerFrameHandlerDelay.sqf index 385e8b47f..09bcf5673 100644 --- a/addons/common/fnc_updatePerFrameHandlerDelay.sqf +++ b/addons/common/fnc_updatePerFrameHandlerDelay.sqf @@ -21,10 +21,14 @@ Author: Mokka, OverlordZorn ---------------------------------------------------------------------------- */ -params [["_handle", -1, [0]], ["_newDelay", 0, [0]]]; +params [["_handle", -1, [0]], ["_newDelay", 0, [0]], ["_updateExectionTime", false, [false]]]; private _idx = GVAR(PFHhandles) param [_handle]; if (isNil "_idx") exitWith {false}; (GVAR(perFrameHandlerArray) select _idx) set [1, _newDelay]; +if (_updateExectionTime) then { + // Add code here +}; + true \ No newline at end of file