ACE3/addons/common/functions/fnc_executePersistent.sqf
2015-01-12 19:22:58 +01:00

17 lines
428 B
Plaintext

// by commy2
#include "\z\ace\addons\common\script_component.hpp"
private "_target";
_target = _this select 0;
{
if (isNil "_x") then {
diag_log text format ["[ACE] ERROR: No argument and function for remote function. ID: %1", _forEachIndex];
} else {
if (typeName _x == "ARRAY") then {
[_x select 0, _target] call (_x select 1);
};
};
} forEach (_target getVariable ["ACE_PersistentFunctions", []]);