Added doors check for UH-60L

This commit is contained in:
Applevangelist 2022-01-16 17:07:44 +01:00
parent 41c9c15ae5
commit c7bbb09195

View File

@ -1695,6 +1695,16 @@ function UTILS.IsLoadingDoorOpen( unit_name )
ret_val = true ret_val = true
end 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 if ret_val == false then
BASE:T( unit_name .. " all doors are closed" ) BASE:T( unit_name .. " all doors are closed" )
end end