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:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* 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"
|
|
|
|
|
2015-04-12 17:51:13 +00:00
|
|
|
private ["_slopeDistance", "_azimuth", "_inclination"];
|
|
|
|
_slopeDistance = _this select 0;
|
|
|
|
_azimuth = _this select 1;
|
|
|
|
_inclination = _this select 2;
|
2015-04-06 13:51:59 +00:00
|
|
|
|
2015-04-12 17:51:13 +00:00
|
|
|
//_inclination = asin((ACE_player weaponDirection currentWeapon ACE_player) select 2);
|
|
|
|
GVAR(inclinationAngle) set [GVAR(currentTarget), _inclination];
|
|
|
|
GVAR(targetRange) set [GVAR(currentTarget), _slopeDistance];
|