only do engine burning effect if cookoff is enabled

This commit is contained in:
commy2 2016-08-13 12:39:52 +02:00
parent 9a93dffc3b
commit d0d407a2c5

View File

@ -168,6 +168,8 @@ if ("ace_cookoff" call EFUNC(common,isModLoaded)) then {
if (_position distance _enginePosition < EFFECT_SIZE * 2) then {
_vehicle setHit [_engineSelection, 1];
_vehicle call EFUNC(cookoff,engineFire);
if (EGVAR(cookoff,enable)) then {
_vehicle call EFUNC(cookoff,engineFire);
};
};
};