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
27 lines
608 B
Plaintext
27 lines
608 B
Plaintext
/*
|
|
* Author: jaynus
|
|
* Gets the wave height at a specific location. Uses a logic, so may be performance iffy
|
|
*
|
|
* Arguments:
|
|
* 0: Position ASL to get height at <ARRAY>
|
|
*
|
|
* Return Value:
|
|
* Wave height in meters <NUMBER>
|
|
*
|
|
* Example:
|
|
* [[5, 2, 5]]] call ace_common_fnc_waveHeightAt
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_position"];
|
|
|
|
if (isNil QGVAR(waveHeightLogic)) then {
|
|
GVAR(waveHeightLogic) = "Logic" createVehicleLocal [0,0,0];
|
|
};
|
|
|
|
GVAR(waveHeightLogic) setPosASL _position;
|
|
|
|
(getPosASLW GVAR(waveHeightLogic) select 2) - (getPosASL GVAR(waveHeightLogic) select 2)
|