added description to sqf functions

This commit is contained in:
Valmo Trindade
2025-01-26 13:09:50 -03:00
parent 89c0e3f8cf
commit be356e4ef3
7 changed files with 27 additions and 0 deletions

View File

@@ -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"];
private _callsign = "";
if (roleDescription _unit != "") then {

View File

@@ -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"];
private _location = (getPos _drone) call armatak_fnc_convert_location;

View File

@@ -0,0 +1 @@
params["_unit"];

View File

@@ -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"];
private _affiliation = "f";
private _type = "G";
private _role = "a-f-G-U-C-I";

View File

@@ -1,4 +1,9 @@
// function name: armatak_fnc_extract_side
// function author: Valmo
// function description: Gets the unit side
params["_unit"];
_side = "friendly";
switch (side _unit) do {
case "WEST": {

View File

@@ -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"];
_uuid = _unit getVariable "_atak_uid";

View File

@@ -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_username = missionNamespace getVariable "_atak_server_instance_username";
private _atak_server_instance_password = missionNamespace getVariable "_atak_server_instance_password";