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
|
|
|
|
*
|
2015-09-20 18:25:25 +00:00
|
|
|
* Arguments:
|
|
|
|
* 0: Code to execute <CODE>
|
|
|
|
* 1: Parameters to run the code with <ARRAY>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* PFH handler ID <NUMBER>
|
2015-01-17 16:56:24 +00:00
|
|
|
*
|
2015-09-20 18:25:25 +00:00
|
|
|
* Public: Yes
|
2015-01-17 16:56:24 +00:00
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-09-20 18:25:25 +00:00
|
|
|
params ["_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];
|
|
|
|
};
|