mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 20:43:30 +00:00
added sqf functions as each API endpoint
This commit is contained in:
12
addons/main/functions/api/fn_postGeoObject.sqf
Normal file
12
addons/main/functions/api/fn_postGeoObject.sqf
Normal 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
|
||||
12
addons/main/functions/api/fn_putGeoObject.sqf
Normal file
12
addons/main/functions/api/fn_putGeoObject.sqf
Normal 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
|
||||
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user