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
|
|
|
|
2015-06-11 07:45:42 +00:00
|
|
|
if (diag_frameno != GVAR(nextFrameNo)) then {
|
|
|
|
GVAR(nextFrameBufferA) pushBack [_params, _func];
|
|
|
|
} else {
|
|
|
|
GVAR(nextFrameBufferB) pushBack [_params, _func];
|
|
|
|
};
|