mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
29 lines
759 B
Plaintext
29 lines
759 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: Ruthberg
|
|
* Handles incoming data packets from the Vectronix Vector LRF
|
|
*
|
|
* Arguments:
|
|
* 0: Slope distance (Meters) <NUMBER>
|
|
* 1: Azimuth (Degrees) <NUMBER>
|
|
* 2: Inclination (Degrees) <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [1000, 45, 1] call ace_atragmx_fnc_sord
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
if (!GVAR(initialised)) exitWith {};
|
|
|
|
params ["_slopeDistance", "_azimuth", "_inclination"];
|
|
|
|
GVAR(targetRangeDirtyFlag) = (round(_slopeDistance) != (GVAR(targetRange) select GVAR(currentTarget)));
|
|
|
|
GVAR(inclinationAngle) set [GVAR(currentTarget), round(_inclination)];
|
|
GVAR(directionOfFire) set [GVAR(currentTarget), round(_azimuth)];
|
|
GVAR(targetRange) set [GVAR(currentTarget), round(_slopeDistance)];
|