2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
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:
|
2020-04-25 06:41:45 +00:00
|
|
|
* [1000, 45, 1] call ace_atragmx_fnc_sord
|
2015-04-11 21:40:46 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-04-06 13:51:59 +00:00
|
|
|
|
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
|
|
|
|
2017-11-03 21:01:02 +00:00
|
|
|
GVAR(targetRangeDirtyFlag) = (round(_slopeDistance) != (GVAR(targetRange) select GVAR(currentTarget)));
|
|
|
|
|
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)];
|