added XEH_postInit to start websocket on client side

This commit is contained in:
Valmo Trindade
2025-05-16 01:11:22 -03:00
parent eda786931d
commit 319ea9b32a
4 changed files with 8 additions and 9 deletions

View File

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