added putGeoObject method to DLL

This commit is contained in:
Valmo Trindade
2024-07-26 03:01:37 -03:00
parent 2c5cbec6bd
commit 919ea92030
2 changed files with 59 additions and 11 deletions

View File

@@ -1,9 +1,21 @@
// 1. Create FreeTAKServer instance
// ....
if (!isServer) exitWith {};
if ((!isServer) && (player != player)) then {
waitUntil {
player == player
};
};
private _armatak_fts_server_url = "armatak" callExtension ["init",[]];
if (isDedicated) exitWith {};
if (!_armatak_fts_server_url) exitWith {};
missionNamespace setVariable ["armatak_fts_server_url", _armatak_fts_server_url];
if (player != player) then {
waitUntil {
player == player
};
};
{
[{if (_x getVariable "_atak_uid" == "") then {
[_x] call armatak_fnc_postGeoObject;
} else {
[_x] call armatak_fnc_putGeoObject;
}},0,[]] call CBA_fnc_addPerFrameHandler;
} forEach playableUnits;