From 2578cf146e563a17014a43c61828e7d857e09bc7 Mon Sep 17 00:00:00 2001 From: Valmo Trindade Date: Mon, 19 Aug 2024 04:47:11 -0300 Subject: [PATCH] added loop handling streaming all players to TCP --- addons/main/functions/fn_init.sqf | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/addons/main/functions/fn_init.sqf b/addons/main/functions/fn_init.sqf index ab7fa1d..eef7db5 100644 --- a/addons/main/functions/fn_init.sqf +++ b/addons/main/functions/fn_init.sqf @@ -20,4 +20,19 @@ if (isServer && _activated) exitWith { missionNamespace setVariable ["_atak_server_instance_password", _atak_ots_api_password]; _atak_server_instance_token = call armatak_fnc_extract_auth_token; -}; + + if (isMultiplayer) then { + { + [{ + [_x] call armatak_fnc_postMarker; + }, 1, []] call CBA_fnc_addPerFrameHandler; + } forEach playableUnits; + } else { + [{ + [player] call armatak_fnc_postMarker; + }, 1, []] call CBA_fnc_addPerFrameHandler; + }; + + private _warning = format ["ARMATAK
%1", "Connected"]; + [[_warning, 2]] call CBA_fnc_notify; +}; \ No newline at end of file