ACE3/addons/vector/functions/fnc_getHeightDistance.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

28 lines
469 B
Plaintext

#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);
_direction params ["_azimuth", "_inclination"];
if (_distance < -999) exitWith {
[-1000, -1000] // return
};
[sin _inclination * _distance, cos _inclination * _distance]