mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
23 lines
455 B
Plaintext
23 lines
455 B
Plaintext
/*
|
|
* Author: esteldunedain
|
|
* Executes a code on the next frame
|
|
*
|
|
* Arguments:
|
|
* 0: Code to execute <CODE>
|
|
* 1: Parameters to run the code with <ARRAY>
|
|
*
|
|
* Return Value:
|
|
* PFH handler ID <NUMBER>
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_func", "_params"];
|
|
|
|
if (diag_frameno != GVAR(nextFrameNo)) then {
|
|
GVAR(nextFrameBufferA) pushBack [_params, _func];
|
|
} else {
|
|
GVAR(nextFrameBufferB) pushBack [_params, _func];
|
|
};
|