/* * Author: SilentSpike * Read spectator settings from module * * Arguments: * 0: The module logic * 1: units * 2: activated * * Return Value: * None * * Public: No */ #include "script_component.hpp" params ["_logic", "_units", "_activated"]; if !(_activated) exitWith {}; [_logic, QGVAR(filterUnits), "unitsFilter"] call EFUNC(common,readSettingFromModule); [_logic, QGVAR(filterSides), "sidesFilter"] call EFUNC(common,readSettingFromModule); [_logic, QGVAR(restrictModes), "cameraModes"] call EFUNC(common,readSettingFromModule); [_logic, QGVAR(restrictVisions), "visionModes"] call EFUNC(common,readSettingFromModule);