mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
20 lines
587 B
Plaintext
20 lines
587 B
Plaintext
// by commy2
|
|
|
|
private ["_function", "_configFile", "_count", "_index", "_config", "_configName", "_condition"];
|
|
|
|
_function = "private '_exceptions'; _exceptions = _this; alive AGM_player";
|
|
|
|
_configFile = configFile >> QGVAR(canInteractConditions);
|
|
_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;
|