mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 15:23:28 +00:00
[WIP] updated extract_info function to be more similar to the desired post body object
This commit is contained in:
@@ -5,15 +5,14 @@
|
|||||||
params["_unit"];
|
params["_unit"];
|
||||||
|
|
||||||
private _atak_uid = getPlayerUID _unit;
|
private _atak_uid = getPlayerUID _unit;
|
||||||
private _atak_callsign = [_unit] call armatak_fnc_extract_callsign;
|
private _atak_latitude = getPos _unit select 0;
|
||||||
|
private _atak_longitude = getPos _unit select 1;
|
||||||
private _atak_bearing = getDir _unit;
|
private _atak_bearing = getDir _unit;
|
||||||
private _atak_team_color = "team_color";
|
|
||||||
private _atak_role = [_unit] call armatak_fnc_extract_role;
|
private _atak_role = [_unit] call armatak_fnc_extract_role;
|
||||||
private _atak_location = worldName;
|
private _atak_callsign = [_unit] call armatak_fnc_extract_callsign;
|
||||||
private _atak_position = getPos _unit;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
desired object
|
desired object type
|
||||||
{
|
{
|
||||||
"longitude": -77.0104,
|
"longitude": -77.0104,
|
||||||
"latitude": 38.889,
|
"latitude": 38.889,
|
||||||
@@ -26,7 +25,6 @@ desired object
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
_unit_info = [_atak_uid, _atak_latitude, _atak_longitude, _atak_bearing, _atak_role, _atak_callsign];
|
||||||
_unit_info = [_atak_uid, _atak_callsign, _atak_bearing ,_atak_team_color, _atak_role, _atak_display_type, _atak_location, _atak_position];
|
|
||||||
|
|
||||||
_unit_info
|
_unit_info
|
||||||
Reference in New Issue
Block a user