ACE3/addons/spectator/functions/fnc_moduleSpectatorSettings.sqf

26 lines
670 B
Plaintext
Raw Normal View History

2015-07-17 15:02:38 +00:00
/*
* Author: SilentSpike
* Read spectator settings from module
*
* Arguments:
* 0: The module logic <LOGIC>
* 1: units <ARRAY>
* 2: activated <BOOL>
*
* Return Value:
* None <NIL>
*
* Public: No
*/
#include "script_component.hpp"
2015-07-18 17:46:46 +00:00
params ["_logic", "_units", "_activated"];
2015-07-17 15:02:38 +00:00
if !(_activated) exitWith {};
2015-07-25 10:20:59 +00:00
[_logic, QGVAR(filterUnits), "unitsFilter"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(filterSides), "sidesFilter"] call EFUNC(common,readSettingFromModule);
2015-07-21 14:15:31 +00:00
[_logic, QGVAR(restrictModes), "cameraModes"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(restrictVisions), "visionModes"] call EFUNC(common,readSettingFromModule);