added handling on SQF for letting the OTS server handle sync links on entities with core armatak module

This commit is contained in:
Valmo Trindade
2024-12-11 04:11:46 -03:00
parent d10dd71dca
commit 7e143c1b6b
5 changed files with 43 additions and 10 deletions

View File

@@ -3,6 +3,7 @@
// function description: Receives a player's unit as param and return the information array needed to send the HTTP request
params["_unit"];
private _location = (getPos _unit) call armatak_fnc_convert_location;
private _atak_uid = [_unit] call armatak_fnc_extract_uuid;
@@ -15,11 +16,6 @@ private _atak_callsign = [_unit] call armatak_fnc_extract_callsign;
private _atak_altitude = _location select 2;
private _atak_server_instance = missionNamespace getVariable "_atak_server_instance";
private _atak_server_instance_token = missionNamespace getVariable "_atak_server_instance_token";
_drone = vehicle (getConnectedUAVUnit _unit);
if (!isNull _drone) then {
_drone setVariable ["_atak_uav_connected", true];
_drone setVariable ["_atak_uav_callsign", "[UAV]" + name _unit];
};
_unit_info = [_atak_uid, _atak_latitude, _atak_longitude, _atak_speed, _atak_bearing, _atak_role, _atak_callsign, _atak_altitude, _atak_server_instance, _atak_server_instance_token];