Added whole websocket handling to the client addon

This commit is contained in:
Valmo Trindade
2025-05-15 23:48:14 -03:00
parent ffcd4feb4e
commit 6de6a29a09
15 changed files with 81 additions and 61 deletions

View File

@@ -0,0 +1,11 @@
#include "..\script_component.hpp"
if (!hasInterface) exitWith {};
_local_address = "armatak" callExtension ["local_ip", []] select 0;
SETVAR(player, localAddress, _local_address);
[{
"armatak" callExtension ["websocket:location", [player call FUNC(extractClientPosition)]];
}, 1, []] call CBA_fnc_addPerFrameHandler;