mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
24 lines
584 B
Plaintext
24 lines
584 B
Plaintext
/*
|
|
* Author: esteldunedain
|
|
* Executes a code once with a given game ACE_time delay, using a PFH
|
|
*
|
|
* Arguments:
|
|
* 0: Code to execute <CODE>
|
|
* 1: Parameters to run the code with <ARRAY>
|
|
* 2: Delay in seconds before executing the code <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [{(_this select 0) setVelocity [0,0,200];}, [player], 10] call ace_common_fnc_waitAndExecute
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_func", "_params", "_delay"];
|
|
|
|
GVAR(waitAndExecArray) pushBack [ACE_time + _delay, _func, _params];
|
|
GVAR(waitAndExecArray) sort true;
|