Update fnc_cookOff.sqf

This commit is contained in:
johnb432 2024-02-13 01:41:58 +01:00
parent bdb33d4dac
commit 07b73c9a55

View File

@ -50,7 +50,7 @@ if (_vehicle isKindOf "CAManBase" || {_vehicle isKindOf "StaticWeapon"}) exitWit
// If under water, ignore // If under water, ignore
// underwater is not very reliable, so use model center instead // underwater is not very reliable, so use model center instead
if (underwater _vehicle || {private _posASL = getPosWorld _vehicle; surfaceIsWater _posASL && {(_posASL select 2) < 0}) exitWith {}; if (underwater _vehicle || {private _posASL = getPosWorld _vehicle; surfaceIsWater _posASL && {(_posASL select 2) < 0}}) exitWith {};
// Check if cook-off is disabled on vehicle specifically // Check if cook-off is disabled on vehicle specifically
if !(_vehicle getVariable [QGVAR(enable), true]) exitWith {}; if !(_vehicle getVariable [QGVAR(enable), true]) exitWith {};