mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 16:03:31 +00:00
added description to sqf functions
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
// function name: armatak_fnc_extract_callsign
|
||||||
|
// function author: Valmo
|
||||||
|
// function description: Gets the unit name or classname to be used as TAK callsign
|
||||||
|
|
||||||
params["_unit"];
|
params["_unit"];
|
||||||
private _callsign = "";
|
private _callsign = "";
|
||||||
if (roleDescription _unit != "") then {
|
if (roleDescription _unit != "") then {
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
// function name: armatak_fnc_extract_drone
|
||||||
|
// function author: Valmo
|
||||||
|
// function description: Gets the drone information for the HTTP request
|
||||||
|
|
||||||
params["_drone"];
|
params["_drone"];
|
||||||
|
|
||||||
private _location = (getPos _drone) call armatak_fnc_convert_location;
|
private _location = (getPos _drone) call armatak_fnc_convert_location;
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
params["_unit"];
|
||||||
@@ -1,4 +1,9 @@
|
|||||||
|
// function name: armatak_fnc_extract_role
|
||||||
|
// function author: Valmo
|
||||||
|
// function description: Gets the unit function to be used as TAK role or NATO 2525 marker
|
||||||
|
|
||||||
params["_unit"];
|
params["_unit"];
|
||||||
|
|
||||||
private _affiliation = "f";
|
private _affiliation = "f";
|
||||||
private _type = "G";
|
private _type = "G";
|
||||||
private _role = "a-f-G-U-C-I";
|
private _role = "a-f-G-U-C-I";
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
|
// function name: armatak_fnc_extract_side
|
||||||
|
// function author: Valmo
|
||||||
|
// function description: Gets the unit side
|
||||||
|
|
||||||
params["_unit"];
|
params["_unit"];
|
||||||
|
|
||||||
_side = "friendly";
|
_side = "friendly";
|
||||||
switch (side _unit) do {
|
switch (side _unit) do {
|
||||||
case "WEST": {
|
case "WEST": {
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
// function name: armatak_fnc_extract_uuid
|
||||||
|
// function author: Valmo
|
||||||
|
// function description: Defines a random v4 uuid if the doesn't have one already
|
||||||
|
|
||||||
params["_unit"];
|
params["_unit"];
|
||||||
|
|
||||||
_uuid = _unit getVariable "_atak_uid";
|
_uuid = _unit getVariable "_atak_uid";
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
// function name: armatak_fnc_extract_auth_token
|
||||||
|
// function author: Valmo
|
||||||
|
// function description: Gets the mission params and authenticate on OpenTAKServer API to be able to send HTTP requests
|
||||||
|
|
||||||
private _atak_server_instance = missionNamespace getVariable "_atak_server_instance";
|
private _atak_server_instance = missionNamespace getVariable "_atak_server_instance";
|
||||||
private _atak_server_instance_username = missionNamespace getVariable "_atak_server_instance_username";
|
private _atak_server_instance_username = missionNamespace getVariable "_atak_server_instance_username";
|
||||||
private _atak_server_instance_password = missionNamespace getVariable "_atak_server_instance_password";
|
private _atak_server_instance_password = missionNamespace getVariable "_atak_server_instance_password";
|
||||||
|
|||||||
Reference in New Issue
Block a user