mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
common: remove the support for code as string
This commit is contained in:
parent
27bd5c5790
commit
f165030e3b
@ -4,7 +4,7 @@
|
||||
* Executes a code once with a given game time delay, using a PFH
|
||||
*
|
||||
* Argument:
|
||||
* 0: Code to execute (Code or String)
|
||||
* 0: Code to execute (Code)
|
||||
* 1: Parameters to run the code with (Array)
|
||||
* 2: Delay in seconds before executing the code (Number)
|
||||
* 3: Interval of time in which the execution is evaluated, 0 means every frame (Number)
|
||||
@ -28,11 +28,6 @@ EXPLODE_4_PVT(_this,_func,_params,_delay,_interval);
|
||||
// Remove the PFH
|
||||
[_pfhId] call cba_fnc_removePerFrameHandler;
|
||||
|
||||
// Compile the function if necesary
|
||||
if (typeName _func == "STRING") then {
|
||||
_func = compile _func;
|
||||
};
|
||||
|
||||
// Execute the function
|
||||
_funcParams call _func;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user