mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ffaa195fe5
* Fixed headers to work with silentspike python script * Fixed rest of the files * Fixed ace-team
32 lines
537 B
Plaintext
32 lines
537 B
Plaintext
/*
|
|
* Author: commy2
|
|
*
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* Array <ARRAY>
|
|
*
|
|
* Example:
|
|
* call ace_vector_fnc_getHeightDistance
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
private ["_distance", "_direction", "_azimuth", "_inclination"];
|
|
|
|
_distance = call FUNC(getDistance);
|
|
_direction = call FUNC(getDirection);
|
|
|
|
_azimuth = _direction select 0;
|
|
_inclination = _direction select 1;
|
|
|
|
if (_distance < -999) exitWith {
|
|
[-1000, -1000] // return
|
|
};
|
|
|
|
[sin _inclination * _distance, cos _inclination * _distance]
|