/* Name: AGM_SwitchUnits_fnc_module Author(s): bux578 Description: Initializes the SwitchUnits module Parameters: 0: OBJECT - module logic 1: ARRAY - list of affected units 2: BOOLEAN - isActivated Returns: BOOLEAN (Good practice to include one) */ if !(isServer) exitWith {}; _logic = _this select 0; _activated = _this select 2; if !(_activated) exitWith {}; AGM_SwitchUnits_Module = true; ["AGM_SwitchUnits_EnableSwitchUnits", true] call AGM_Core_fnc_setParameter; [_logic, "AGM_SwitchUnits_SwitchToWest", "SwitchToWest"] call AGM_Core_fnc_readBooleanParameterFromModule; [_logic, "AGM_SwitchUnits_SwitchToEast", "SwitchToEast"] call AGM_Core_fnc_readBooleanParameterFromModule; [_logic, "AGM_SwitchUnits_SwitchToIndependent", "SwitchToIndependent"] call AGM_Core_fnc_readBooleanParameterFromModule; [_logic, "AGM_SwitchUnits_SwitchToCivilian", "SwitchToCivilian"] call AGM_Core_fnc_readBooleanParameterFromModule; [_logic, "AGM_SwitchUnits_EnableSafeZone", "EnableSafeZone"] call AGM_Core_fnc_readBooleanParameterFromModule; [_logic, "AGM_SwitchUnits_SafeZoneRadius", "SafeZoneRadius"] call AGM_Core_fnc_readNumericParameterFromModule; diag_log text "[AGM]: SwitchUnits Module Initialized.";