mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 21:23:30 +00:00
Added whole websocket handling to the client addon
This commit is contained in:
11
addons/client/functions/fnc_socketRouter.sqf
Normal file
11
addons/client/functions/fnc_socketRouter.sqf
Normal 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;
|
||||
Reference in New Issue
Block a user