Skip to content

Commit

Permalink
RHS CH-47 - use animationSourcePhase (#5201)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored May 26, 2017
1 parent 2496628 commit 772ca13
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion optionals/compat_rhs_usf3/functions/fnc_canCloseDoor.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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])} &&
{
Expand Down

0 comments on commit 772ca13

Please sign in to comment.