diff --git a/addons/client/functions/fnc_convertClientLocation.sqf b/addons/client/functions/fnc_convertClientLocation.sqf index 5b5fe1d..8d8e735 100644 --- a/addons/client/functions/fnc_convertClientLocation.sqf +++ b/addons/client/functions/fnc_convertClientLocation.sqf @@ -1,3 +1,24 @@ +#include "..\script_component.hpp" + +/* + * Author: Valmo Trindade + * This function is used to convert the position of a unit to the world world location. + * + * Argument: + * 0: in game latitude is the latitude of the unit. + * 1: in game longitude is the longitude of the unit. + * 2: in game altitude is the altitude of the unit. + * 3: in game bearing is the bearing of the unit. + * + * Return Value: + * ARRAY -> [latitude, longitude, altitude, bearing] + * + * Example: + * [player] call armatak_client_fnc_convertClientLocation; + * + * Public: Yes + */ + params["_latitude", "_longitude", "_altitude"]; _position = [_latitude, _longitude, _altitude]; diff --git a/addons/client/script_component.hpp b/addons/client/script_component.hpp index ac86fa5..67a3929 100644 --- a/addons/client/script_component.hpp +++ b/addons/client/script_component.hpp @@ -1,6 +1,6 @@ #define COMPONENT client #define COMPONENT_BEAUTIFIED WebSocket Client -#include "\armatak\armatak\armatak_main\script_mod.hpp" +#include "\armatak\armatak\addons\main\script_mod.hpp" // #define DEBUG_MODE_FULL // #define DISABLE_COMPILE_CACHE