ACE3/addons/switchunits/functions/fnc_module.sqf

41 lines
1.1 KiB
Plaintext
Raw Normal View History

/*
2015-01-14 01:57:15 +00:00
Name: ACE_SwitchUnits_fnc_module
2015-02-03 05:53:02 +00:00
Author(s):
bux578
2015-02-03 05:53:02 +00:00
Description:
Initializes the SwitchUnits module
2015-02-03 05:53:02 +00:00
Parameters:
0: OBJECT - module logic
1: ARRAY<OBJECT> - list of affected units
2: BOOLEAN - isActivated
2015-02-03 05:53:02 +00:00
Returns:
BOOLEAN (Good practice to include one)
*/
2015-01-12 14:47:22 +00:00
#include "script_component.hpp"
if !(isServer) exitWith {};
_logic = _this select 0;
_activated = _this select 2;
if !(_activated) exitWith {};
2015-01-12 14:47:22 +00:00
GVAR(Module) = true;
2015-01-13 05:14:27 +00:00
[QGVAR(EnableSwitchUnits), true] call EFUNC(common,setParameter);
2015-02-03 05:53:02 +00:00
[_logic, QGVAR(SwitchToWest), "SwitchToWest"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(SwitchToEast), "SwitchToEast"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(SwitchToIndependent), "SwitchToIndependent"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(SwitchToCivilian), "SwitchToCivilian"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(EnableSafeZone), "EnableSafeZone"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(SafeZoneRadius), "SafeZoneRadius"] call EFUNC(common,readSettingFromModule);
2015-01-12 14:47:22 +00:00
diag_log text "[ACE]: SwitchUnits Module Initialized.";