Add a handler that will execute every frame, or every x number of seconds
_func | The function you wish to execute |
_delay | The amount of time in seconds (can be less than 0) between executions, 0 for everyframe. |
_params | Parameters passed to the function executing. This will be the same array every execution. |
_handle | a number representing the handle of the function. Use this to remove the handler. |
[{player sideChat format["every frame! _this: %1", _this];}, 0, ["some","params",1,2,3]] call CBA_fnc_addPerFrameHandler;
Nou & Jaynus, donated from ACRE project code for use by the community.