mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 17:03:31 +00:00
Splitted Connection Module
This commit is contained in:
22
addons/server/functions/fnc_ZeusTcpModuleConfig.sqf
Normal file
22
addons/server/functions/fnc_ZeusTcpModuleConfig.sqf
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "..\script_component.hpp"
|
||||
|
||||
params ["_logic"];
|
||||
|
||||
if (missionNamespace getVariable ["armatak_tcp_socket_is_running", false]) exitWith {
|
||||
["Socket was called twice", "error", "TCP Socket"] call EFUNC(main,notify);
|
||||
closeDialog 1;
|
||||
};
|
||||
|
||||
disableSerialization;
|
||||
|
||||
["Connecting to TCP Socket", "success", "TCP Socket"] call EFUNC(main,notify);
|
||||
|
||||
_tak_server_instance_address = ctrlText 14000;
|
||||
_tak_server_instance_port = ctrlText 14001;
|
||||
_tak_server_fulladdress = _tak_server_instance_address + ":" + _tak_server_instance_port;
|
||||
|
||||
"armatak" callExtension ["tcp_socket:start", [_tak_server_fulladdress]];
|
||||
|
||||
_tak_server_fulladdress call FUNC(startCotRouter);
|
||||
deleteVehicle _logic;
|
||||
closeDialog 1;
|
||||
Reference in New Issue
Block a user