mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 18:03:30 +00:00
15 lines
428 B
Plaintext
15 lines
428 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
_local_address = "armatak" callExtension ["local_ip", []] select 0;
|
|
|
|
"armatak" callExtension ["websocket:start", []];
|
|
|
|
SETVAR(player,GVAR(localAddress),_local_address);
|
|
SETVAR(player,GVAR(eudConnected),false);
|
|
|
|
[{
|
|
"armatak" callExtension ["websocket:location", [player call armatak_client_fnc_extractClientPosition]];
|
|
}, 1, []] call CBA_fnc_addPerFrameHandler;
|