mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 14:33:56 +00:00
added documentation for convertClientLocation function
This commit is contained in:
@@ -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 <NUMBER> is the latitude of the unit.
|
||||||
|
* 1: in game longitude <NUMBER> is the longitude of the unit.
|
||||||
|
* 2: in game altitude <NUMBER> is the altitude of the unit.
|
||||||
|
* 3: in game bearing <NUMBER> 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"];
|
params["_latitude", "_longitude", "_altitude"];
|
||||||
|
|
||||||
_position = [_latitude, _longitude, _altitude];
|
_position = [_latitude, _longitude, _altitude];
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#define COMPONENT client
|
#define COMPONENT client
|
||||||
#define COMPONENT_BEAUTIFIED WebSocket 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 DEBUG_MODE_FULL
|
||||||
// #define DISABLE_COMPILE_CACHE
|
// #define DISABLE_COMPILE_CACHE
|
||||||
|
|||||||
Reference in New Issue
Block a user