2015-04-11 21:40:46 +00:00
|
|
|
/*
|
|
|
|
* Author: Ruthberg
|
2015-04-12 17:51:13 +00:00
|
|
|
* Handles incoming data packets from the Vectronix Vector LRF
|
2015-04-11 21:40:46 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2015-04-12 17:51:13 +00:00
|
|
|
* 0: Slope distance (Meters) <NUMBER>
|
|
|
|
* 1: Azimuth (Degrees) <NUMBER>
|
|
|
|
* 2: Inclination (Degrees) <NUMBER>
|
2015-04-11 21:40:46 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-04-11 21:40:46 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2015-04-12 17:51:13 +00:00
|
|
|
* [1000, 45, 1] call ace_microdagr_fnc_recieveRangefinderData
|
2015-04-11 21:40:46 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-04-06 13:51:59 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2017-02-25 01:20:27 +00:00
|
|
|
if (!GVAR(initialised)) exitWith {};
|
|
|
|
|
2016-05-03 00:32:44 +00:00
|
|
|
params ["_slopeDistance", "_azimuth", "_inclination"];
|
2015-04-06 13:51:59 +00:00
|
|
|
|
2015-04-19 10:40:13 +00:00
|
|
|
GVAR(inclinationAngle) set [GVAR(currentTarget), round(_inclination)];
|
|
|
|
GVAR(directionOfFire) set [GVAR(currentTarget), round(_azimuth)];
|
|
|
|
GVAR(targetRange) set [GVAR(currentTarget), round(_slopeDistance)];
|