mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 21:23:30 +00:00
added XEH_postInit to start websocket on client side
This commit is contained in:
11
addons/client/XEH_postInit.sqf
Normal file
11
addons/client/XEH_postInit.sqf
Normal file
@@ -0,0 +1,11 @@
|
||||
#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;
|
||||
Reference in New Issue
Block a user