added sqf functions as each API endpoint

This commit is contained in:
Valmo Trindade
2024-07-25 00:04:45 -03:00
parent 864875d979
commit 2c5cbec6bd
4 changed files with 32 additions and 12 deletions

View File

@@ -0,0 +1,12 @@
params["_unit"];
private _uid_string = "armatak" callExtension ["ManageGeoObject/postGeoObject",[_unit] call armatak_fnc_extract_info];
private _uid_string = _uid_string select 0;
if (_uid_string != "") then {
_uid_string = (_uid_string splitString '"') select 3;
_unit setVariable ["_atak_uid",_uid_string, true];
};
_uid_string

View File

@@ -0,0 +1,12 @@
params["_unit"];
private _uid_string = "armatak" callExtension ["ManageGeoObject/putGeoObject",[_unit] call armatak_fnc_extract_info];
private _uid_string = _uid_string select 0;
if (_uid_string != "") then {
_uid_string = (_uid_string splitString '"') select 3;
_unit setVariable ["_atak_uid",_uid_string, true];
};
_uid_string

View File

@@ -1,9 +0,0 @@
// function name: armatak_fnc_map_not_found
// function author: Valmo
// function description: Main bootstrap function for the mod
params[];
if (!isServer) then {
return;
};