2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2017-06-08 13:31:51 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Array <ARRAY>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* call ace_vector_fnc_getHeightDistance
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2017-10-10 14:39:59 +00:00
|
|
|
private _distance = call FUNC(getDistance);
|
|
|
|
private _direction = call FUNC(getDirection);
|
2015-01-15 16:24:19 +00:00
|
|
|
|
2018-10-10 01:21:46 +00:00
|
|
|
_direction params ["_azimuth", "_inclination"];
|
2015-01-15 16:24:19 +00:00
|
|
|
|
|
|
|
if (_distance < -999) exitWith {
|
2015-01-16 00:48:43 +00:00
|
|
|
[-1000, -1000] // return
|
2015-01-15 16:24:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
[sin _inclination * _distance, cos _inclination * _distance]
|