ACE3/addons/common/functions/fnc_execNextFrame.sqf
2015-06-11 02:45:42 -05:00

22 lines
426 B
Plaintext

/*
* Author: esteldunedain
*
* Executes a code on the next frame
*
* Argument:
* 0: Code to execute (Code)
* 1: Parameters to run the code with (Array)
*
* Return value:
* PFH handler ID
*/
#include "script_component.hpp"
PARAMS_2(_func,_params);
if (diag_frameno != GVAR(nextFrameNo)) then {
GVAR(nextFrameBufferA) pushBack [_params, _func];
} else {
GVAR(nextFrameBufferB) pushBack [_params, _func];
};