ACE3/addons/vector/functions/fnc_getHeightDistance.sqf

28 lines
469 B
Plaintext
Raw Permalink Normal View History

#include "..\script_component.hpp"
/*
* Author: commy2
*
*
* Arguments:
* None
*
* Return Value:
* Array <ARRAY>
*
* Example:
* call ace_vector_fnc_getHeightDistance
*
* Public: No
*/
private _distance = call FUNC(getDistance);
private _direction = call FUNC(getDirection);
2015-01-15 16:24:19 +00:00
_direction params ["_azimuth", "_inclination"];
2015-01-15 16:24:19 +00:00
if (_distance < -999) exitWith {
[-1000, -1000] // return
2015-01-15 16:24:19 +00:00
};
[sin _inclination * _distance, cos _inclination * _distance]