diff --git a/Moose Development/Moose/Utilities/Utils.lua b/Moose Development/Moose/Utilities/Utils.lua index 7aa8bcd75..cdce070e4 100644 --- a/Moose Development/Moose/Utilities/Utils.lua +++ b/Moose Development/Moose/Utilities/Utils.lua @@ -1683,10 +1683,21 @@ function UTILS.IsLoadingDoorOpen( unit_name ) BASE:T(unit_name .. " door is open") ret_val = true end + + if string.find(type_name, "UH-60L") and (unit:getDrawArgumentValue(401) == 1) or (unit:getDrawArgumentValue(402) == 1) then + BASE:T(unit_name .. " cargo door is open") + ret_val = true + end + if string.find(type_name, "UH-60L" ) and unit:getDrawArgumentValue(38) == 1 or unit:getDrawArgumentValue(400) == 1 then + BASE:T(unit_name .. " front door(s) are open") + ret_val = true + end + if ret_val == false then BASE:T(unit_name .. " all doors are closed") end + return ret_val end -- nil