diff --git a/addons/main/functions/fn_init.sqf b/addons/main/functions/fn_init.sqf index abb6ff2..0b04a24 100644 --- a/addons/main/functions/fn_init.sqf +++ b/addons/main/functions/fn_init.sqf @@ -3,22 +3,23 @@ params [ ["_units", [], [[]]], ["_activated", true, [true]] ]; -/*if (isServer && _activated) exitWith { - private _warning = format ["ARMATAK
%1", "Connecting..."]; - [[_warning, 1.5]] call CBA_fnc_notify; - - _atak_ots_address = _logic getVariable "armatak_module_ots_api_instance_address"; - _atak_ots_protocol = _logic getVariable "armatak_module_ots_api_instance_protocol"; - _atak_ots_port = _logic getVariable "armatak_module_ots_api_instance_port"; - - _atak_ots_fulladdress = _atak_ots_protocol + ":" + "/" + "/" + _atak_ots_address + ":" + (str _atak_ots_port); - _atak_ots_api_username = _logic getVariable "armatak_module_ots_api_instance_username"; - _atak_ots_api_password = _logic getVariable "armatak_module_ots_api_instance_password"; - - missionNamespace setVariable ["_atak_server_instance", _atak_ots_fulladdress]; - missionNamespace setVariable ["_atak_server_instance_username", _atak_ots_api_username]; - missionNamespace setVariable ["_atak_server_instance_password", _atak_ots_api_password]; - +if (isServer && _activated) exitWith { + private _warning = format ["ARMATAK
%1", "Connecting..."]; + [[_warning, 1.5]] call CBA_fnc_notify; + + _atak_ots_address = _logic getVariable "armatak_module_ots_api_instance_address"; + _atak_ots_protocol = _logic getVariable "armatak_module_ots_api_instance_protocol"; + _atak_ots_port = _logic getVariable "armatak_module_ots_api_instance_port"; + + _atak_ots_fulladdress = _atak_ots_protocol + ":" + "/" + "/" + _atak_ots_address + ":" + (str _atak_ots_port); + _atak_ots_api_username = _logic getVariable "armatak_module_ots_api_instance_username"; + _atak_ots_api_password = _logic getVariable "armatak_module_ots_api_instance_password"; + + missionNamespace setVariable ["_atak_server_instance", _atak_ots_fulladdress]; + missionNamespace setVariable ["_atak_server_instance_username", _atak_ots_api_username]; + missionNamespace setVariable ["_atak_server_instance_password", _atak_ots_api_password]; + + /* _atak_server_instance_token = call armatak_fnc_extract_auth_token; if (_atak_server_instance_token == "") then { @@ -88,5 +89,5 @@ params [ "armatak" callExtension ["sendMarkers", _toSend]; }, 1, []] call CBA_fnc_addPerFrameHandler; }; - }; - */ \ No newline at end of file + */ +}; \ No newline at end of file