Skip to content

Commit

Permalink
preperation for updateExectuionTime
Browse files Browse the repository at this point in the history
  • Loading branch information
OverlordZorn committed Sep 7, 2024
1 parent 1eff683 commit 709a41a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addons/common/fnc_updatePerFrameHandlerDelay.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 709a41a

Please sign in to comment.