mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Update fnc_unload.sqf
This commit is contained in:
parent
8ea8771192
commit
b70aafa876
@ -52,6 +52,18 @@ if (_object isEqualType objNull) then {
|
|||||||
[QEGVAR(zeus,addObjects), [[_object], _objectCurators]] call CBA_fnc_serverEvent;
|
[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];
|
private _cargoNet = _object getVariable [QGVAR(cargoNet), objNull];
|
||||||
|
|
||||||
// Delete cargo net if no items remain on it
|
// Delete cargo net if no items remain on it
|
||||||
|
Loading…
Reference in New Issue
Block a user