RHS CH-47 - use animationSourcePhase (#5201)

This commit is contained in:
PabstMirror 2017-05-26 08:54:12 -05:00 committed by GitHub
parent 24966281e7
commit 772ca1313e

View File

@ -18,7 +18,13 @@
#include "script_component.hpp" #include "script_component.hpp"
params ["_vehicle", "_door"]; 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} && {alive _vehicle} &&
{!(_vehicle getVariable [QEGVAR(fastroping,doorsLocked),false])} && {!(_vehicle getVariable [QEGVAR(fastroping,doorsLocked),false])} &&
{ {