diff --git a/addons/main/functions/fn_init.sqf b/addons/main/functions/fn_init.sqf
index 9638865..270ec44 100644
--- a/addons/main/functions/fn_init.sqf
+++ b/addons/main/functions/fn_init.sqf
@@ -8,6 +8,15 @@ if (isServer) exitWith {
_warning = format ["ARMATAK
%1", "Connecting to TAK Server TCP Socket..."];
[[_warning, 1.5]] call CBA_fnc_notify;
+ addMissionEventHandler ["ExtensionCallback", {
+ params ["_name", "_function", "_data"];
+
+ if (_name == "armatak_tcp_socket") then {
+ _warning = format ["ARMATAK
%1", "Connecting to TAK Server TCP Socket..."];
+ [[_warning, 1.5]] call CBA_fnc_notify;
+ };
+ }];
+
_tak_server_instance_address = _logic getVariable "armatak_module_tak_server_instance_address";
_tak_server_instance_port = _logic getVariable "armatak_module_tak_server_instance_port";
@@ -35,6 +44,7 @@ if (isServer) exitWith {
_group_role = [_x] call armatak_fnc_extract_group_role;
[_x, _callsign, _group_name, _group_role] call armatak_fnc_send_human_cot;
+ [_x] call armatak_fnc_send_digital_pointer_cot;
};
if ((_objectType select 0) == "Vehicle") then {
_atak_type = [_x] call armatak_fnc_extract_role;
@@ -44,6 +54,7 @@ if (isServer) exitWith {
};
if (unitIsUAV _x) then {
[_x] call armatak_fnc_send_drone_cot;
+ [_x] call armatak_fnc_send_digital_pointer_cot;
};
} forEach _syncedUnits;
}, 2, []] call CBA_fnc_addPerFrameHandler;