add Compatibilty to mods where the Animation are not "para_pilot"

This commit is contained in:
Joko 2015-05-25 01:09:28 +02:00
parent b0072178ea
commit e0722452b7

View File

@ -16,4 +16,4 @@
#include "script_component.hpp"
private["_unit"];
_unit = _this select 0;
(animationState _unit == 'para_pilot' && !(_unit getvariable [QGVAR(chuteIsCut),false]) && (_unit getvariable [QGVAR(hasReserve),false]))
(vehicle _unit isKindOf 'ParachuteBase' && !(_unit getvariable [QGVAR(chuteIsCut),false]) && (_unit getvariable [QGVAR(hasReserve),false]))