exploded main addon to divide componenets into addons for each feature

This commit is contained in:
Valmo Trindade
2025-05-15 17:53:25 -03:00
parent 39f4936bf7
commit ffcd4feb4e
5 changed files with 58 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
if (!hasInterface) exitWith {};
_local_address = "armatak" callExtension ["local_ip", []] select 0;
player setVariable ["localAddress", _local_address];
player addEventHandler ["Respawn", {
params["_unit", "_corpse"];
[{
if (alive _this) then {
"armatak" callExtension ["websocket:location", [player call armatak_fnc_extract_position]];
};
}, 1, []] call CBA_fnc_addPerFrameHandler;
}];
[{
"armatak" callExtension ["websocket:location", [player call armatak_fnc_extract_position]];
}, 1, []] call CBA_fnc_addPerFrameHandler;