ACE3/addons/common/functions/fnc_positionToASL.sqf

25 lines
377 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
/*
2015-03-24 04:18:00 +00:00
* Author: esteldunedain
* Converts Arma "Position" to ASL
*
* Arguments:
* 0: position x <Number>
* 1: position y <Number>
* 2: position z <Number>
*
* Return Value:
* None
*
* Example:
* [1, 1, 1] call ace_common_fnc_positionToASL
*
2015-09-20 14:40:49 +00:00
* Public: Yes
*/
if (surfaceIsWater _this) then {
_this
} else {
ATLtoASL _this
};