From 772ca1313ec5d5fbbfb42f9b8d5339c47cec58f5 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Fri, 26 May 2017 08:54:12 -0500 Subject: [PATCH] RHS CH-47 - use animationSourcePhase (#5201) --- optionals/compat_rhs_usf3/functions/fnc_canCloseDoor.sqf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/optionals/compat_rhs_usf3/functions/fnc_canCloseDoor.sqf b/optionals/compat_rhs_usf3/functions/fnc_canCloseDoor.sqf index 61269519ed..4aeecaffad 100644 --- a/optionals/compat_rhs_usf3/functions/fnc_canCloseDoor.sqf +++ b/optionals/compat_rhs_usf3/functions/fnc_canCloseDoor.sqf @@ -18,7 +18,13 @@ #include "script_component.hpp" params ["_vehicle", "_door"]; -(_vehicle doorPhase _door > 0) && +( + if (_vehicle isKindOf "RHS_CH_47F") then { + (_vehicle animationSourcePhase _door) > 0 + } else { + (_vehicle doorPhase _door) > 0 + } +) && {alive _vehicle} && {!(_vehicle getVariable [QEGVAR(fastroping,doorsLocked),false])} && {