ACE3/addons/vector/functions/fnc_getHeightDistance.sqf
Dedmen Miller 81e02a7336 Refactor private ARRAY to private keyword (#5598)
* Everything

* Fixed missing ;

* Fix missing ; and double private

* Fixed cannot isNull on number

* Turn _temparture back to isNil

* Fix error from merge
2017-10-10 09:39:59 -05:00

30 lines
503 B
Plaintext

/*
* Author: commy2
*
*
* Arguments:
* None
*
* Return Value:
* Array <ARRAY>
*
* Example:
* call ace_vector_fnc_getHeightDistance
*
* Public: No
*/
#include "script_component.hpp"
private _distance = call FUNC(getDistance);
private _direction = call FUNC(getDirection);
private _azimuth = _direction select 0;
private _inclination = _direction select 1;
if (_distance < -999) exitWith {
[-1000, -1000] // return
};
[sin _inclination * _distance, cos _inclination * _distance]