ACE3/addons/common/functions/fnc_executePersistent.sqf

15 lines
404 B
Plaintext
Raw Normal View History

// by commy2
2015-01-13 19:56:02 +00:00
#include "script_component.hpp"
2015-05-14 18:06:06 +00:00
PARAMS_1(_target);
{
2015-05-14 18:06:06 +00:00
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", []]);