2015-09-20 18:25:25 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Execute all Persistent Functions
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* ?
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-01-13 19:56:02 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-09-20 18:25:25 +00:00
|
|
|
params ["_target"];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
{
|
2015-05-14 18:06:06 +00:00
|
|
|
if (isNil "_x") then {
|
2015-09-20 18:25:25 +00:00
|
|
|
ACE_LOGERROR_1("No arguments and function for remote function. ID: %1",_forEachIndex);
|
2015-05-14 18:06:06 +00:00
|
|
|
} else {
|
|
|
|
if (typeName _x == "ARRAY") then {
|
|
|
|
[_x select 0, _target] call (_x select 1);
|
|
|
|
};
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|
2015-01-12 04:02:33 +00:00
|
|
|
} forEach (_target getVariable ["ACE_PersistentFunctions", []]);
|