mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 15:33:29 +00:00
Added vehicle sensor handler to get sensor input and throw it on ATAK
This commit is contained in:
@@ -44,6 +44,8 @@ if (isServer) exitWith {
|
||||
_callsign = [_x] call armatak_fnc_extract_marker_callsign;
|
||||
|
||||
[_x, _atak_type, _callsign] call armatak_fnc_send_marker_cot;
|
||||
|
||||
_x call armatak_fnc_extract_sensor_data;
|
||||
};
|
||||
case ((_objectType select 0) == "VehicleAutonomous"): {
|
||||
_atak_type = [_x] call armatak_fnc_extract_role;
|
||||
@@ -51,6 +53,8 @@ if (isServer) exitWith {
|
||||
|
||||
[_x, _atak_type, _callsign] call armatak_fnc_send_drone_cot;
|
||||
[_x] call armatak_fnc_send_digital_pointer_cot;
|
||||
|
||||
_x call armatak_fnc_extract_sensor_data;
|
||||
};
|
||||
};
|
||||
} forEach GVAR(syncedUnits);
|
||||
|
||||
@@ -48,6 +48,8 @@ missionNamespace setVariable ["armatak_server_syncedUnits", _syncUnits];
|
||||
_callsign = [_x] call armatak_fnc_extract_marker_callsign;
|
||||
|
||||
[_x, _atak_type, _callsign] call armatak_fnc_send_marker_cot;
|
||||
|
||||
_x call armatak_fnc_extract_sensor_data;
|
||||
};
|
||||
case ((_objectType select 0) == "VehicleAutonomous"): {
|
||||
_atak_type = [_x] call armatak_fnc_extract_role;
|
||||
@@ -55,6 +57,8 @@ missionNamespace setVariable ["armatak_server_syncedUnits", _syncUnits];
|
||||
|
||||
[_x, _atak_type, _callsign] call armatak_fnc_send_drone_cot;
|
||||
[_x] call armatak_fnc_send_digital_pointer_cot;
|
||||
|
||||
_x call armatak_fnc_extract_sensor_data;
|
||||
};
|
||||
};
|
||||
} forEach GVAR(syncedUnits);
|
||||
|
||||
Reference in New Issue
Block a user