Update fnc_unload.sqf

This commit is contained in:
johnb432 2024-07-22 09:29:39 +02:00
parent 8ea8771192
commit b70aafa876

View File

@ -52,6 +52,18 @@ if (_object isEqualType objNull) then {
[QEGVAR(zeus,addObjects), [[_object], _objectCurators]] call CBA_fnc_serverEvent;
};
// Reenable UAV crew
private _UAVCrew = _object getVariable [QGVAR(isUAV), []];
if (_UAVCrew isNotEqualTo []) then {
// Reenable AI
{
[_x, false] call EFUNC(common,disableAiUAV);
} forEach _UAVCrew;
_object setVariable [QGVAR(isUAV), nil, true];
};
private _cargoNet = _object getVariable [QGVAR(cargoNet), objNull];
// Delete cargo net if no items remain on it