mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
21 lines
618 B
Plaintext
21 lines
618 B
Plaintext
// by commy2
|
|
#include "script_component.hpp"
|
|
|
|
private ["_function", "_configFile", "_count", "_index", "_config", "_configName", "_condition"];
|
|
|
|
_function = "private '_exceptions'; _exceptions = _this; alive ACE_player";
|
|
|
|
_configFile = configFile >> "ACE_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;
|