refactored init function

This commit is contained in:
Valmo Trindade
2024-07-30 13:52:10 -03:00
parent d036f50d4f
commit 5f9a732101

View File

@@ -18,12 +18,15 @@ if (_activated) exitWith {
missionNamespace setVariable ["_atak_server_instance", _atak_fts_fulladdress];
missionNamespace setVariable ["_atak_server_instance_token", _atak_fts_bearer_token];
{
[{
_uid = _x getVariable "_atak_uid";
if (isNull _uid) then {
player call armatak_fnc_postGeoObject;
_x call armatak_fnc_postGeoObject;
} else {
player call armatak_fnc_putGeoObject;
_x call armatak_fnc_putGeoObject;
};
}, 2, []] call CBA_fnc_addPerFrameHandler;
} forEach playableUnits;
};