mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
/*
|
|
Name: AGM_SwitchUnits_fnc_module
|
|
|
|
Author(s):
|
|
bux578
|
|
|
|
Description:
|
|
Initializes the SwitchUnits module
|
|
|
|
Parameters:
|
|
0: OBJECT - module logic
|
|
1: ARRAY<OBJECT> - 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.";
|