added a more refined way to handle drones used by the player

This commit is contained in:
Valmo Trindade
2024-09-03 00:21:17 -03:00
parent eacccd8911
commit bc07343edb
3 changed files with 33 additions and 11 deletions

View File

@@ -16,6 +16,13 @@ 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];
_unit_info