mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 17:03:31 +00:00
adding OTS authentication handling on init function
This commit is contained in:
15
addons/main/functions/extract_data/fn_extract_position.sqf
Normal file
15
addons/main/functions/extract_data/fn_extract_position.sqf
Normal file
@@ -0,0 +1,15 @@
|
||||
// function name: armatak_fnc_extract_position
|
||||
// function author: Valmo
|
||||
// function description: Receives a player's unit as param and return the information array for SIMTAK
|
||||
|
||||
params["_unit"];
|
||||
private _location = (getPos _unit) call armatak_fnc_convert_location;
|
||||
|
||||
private _atak_latitude = _location select 0;
|
||||
private _atak_longitude = _location select 1;
|
||||
private _atak_altitude = _location select 2;
|
||||
private _atak_bearing = parseNumber ((getDir _unit) toFixed 0);
|
||||
|
||||
_unit_info = [_atak_latitude,_atak_longitude,_atak_altitude,_atak_bearing];
|
||||
|
||||
_unit_info
|
||||
Reference in New Issue
Block a user