2015-01-11 16:42:31 +00:00
|
|
|
// by commy2
|
2015-01-12 11:14:15 +00:00
|
|
|
#include "\z\ace\addons\core\script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
private ["_function", "_configFile", "_count", "_index", "_config", "_configName", "_condition"];
|
|
|
|
|
2015-01-12 04:02:33 +00:00
|
|
|
_function = "private '_exceptions'; _exceptions = _this; alive ACE_player";
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-11 18:20:14 +00:00
|
|
|
_configFile = configFile >> QGVAR(canInteractConditions);
|
2015-01-11 16:42:31 +00:00
|
|
|
_count = count _configFile;
|
|
|
|
|
|
|
|
for "_index" from 0 to (_count -1) do {
|
|
|
|
_config = _configFile select _index;
|
|
|
|
_configName = configName _config;
|
|
|
|
|
|
|
|
_condition = getText (_config >> "condition");
|
|
|
|
|
|
|
|
_function = _function + format ["&& {%1 || {'%2' in _exceptions}}", _condition, _configName];
|
|
|
|
};
|
|
|
|
|
|
|
|
GVAR(canInteract) = compileFinal _function;
|