ACE3/addons/spectator/functions/fnc_moduleSpectatorSettings.sqf

27 lines
664 B
Plaintext
Raw Normal View History

#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:
* None
2015-07-17 15:02:38 +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 {};
[_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);