2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
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:
|
2017-08-12 13:25:48 +00:00
|
|
|
* None
|
2015-07-17 15:02:38 +00:00
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [LOGIC, [bob, kevin], true] call ace_spectator_fnc_moduleSpectatorSettings
|
|
|
|
*
|
2015-07-17 15:02:38 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2015-07-18 17:46:46 +00:00
|
|
|
params ["_logic", "_units", "_activated"];
|
2015-07-17 15:02:38 +00:00
|
|
|
|
|
|
|
if !(_activated) exitWith {};
|
|
|
|
|
2017-08-12 13:25:48 +00:00
|
|
|
[_logic, QGVAR(enableAI), "enableAI"] 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);
|