ACE3/addons/common/functions/fnc_execNextFrame.sqf

22 lines
426 B
Plaintext
Raw Normal View History

2015-01-17 16:56:24 +00:00
/*
2015-03-24 04:18:00 +00:00
* Author: esteldunedain
2015-01-17 16:56:24 +00:00
*
* 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"
2015-05-14 18:06:06 +00:00
PARAMS_2(_func,_params);
2015-01-17 16:56:24 +00:00
if (diag_frameno != GVAR(nextFrameNo)) then {
GVAR(nextFrameBufferA) pushBack [_params, _func];
} else {
GVAR(nextFrameBufferB) pushBack [_params, _func];
};