2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-03-12 17:57:44 +00:00
|
|
|
/*
|
|
|
|
* Author: PabstMirror
|
|
|
|
* Data transfer over a connected cable. Based on page 14 of pdf.
|
|
|
|
*
|
|
|
|
* Arguments:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-03-12 17:57:44 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-03-12 17:57:44 +00:00
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [] call ace_vector_fnc_dataTransfer
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2017-10-10 14:39:59 +00:00
|
|
|
private _distance = call FUNC(getDistance);
|
|
|
|
private _direction = call FUNC(getDirection);
|
2018-10-10 01:21:46 +00:00
|
|
|
_direction params ["_azimuth", "_inclination"];
|
|
|
|
|
2015-03-12 17:57:44 +00:00
|
|
|
//Send Data to connected GPS
|
2016-05-24 23:44:56 +00:00
|
|
|
[QGVAR(rangefinderData), [_distance, _azimuth, _inclination]] call CBA_fnc_localEvent;
|