From 6253ec091544e532fe2f66eb216110af46be6c97 Mon Sep 17 00:00:00 2001 From: jonpas Date: Mon, 10 Jul 2017 21:41:23 +0200 Subject: [PATCH] Prevent taking nozzle if already carried (#5352) --- addons/refuel/functions/fnc_canTakeNozzle.sqf | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/refuel/functions/fnc_canTakeNozzle.sqf b/addons/refuel/functions/fnc_canTakeNozzle.sqf index b7ed8f0cb1..d3852a668c 100644 --- a/addons/refuel/functions/fnc_canTakeNozzle.sqf +++ b/addons/refuel/functions/fnc_canTakeNozzle.sqf @@ -23,6 +23,7 @@ if (isNull _unit || {!local _unit} || {!alive _target} || {!isNull (_unit getVariable [QGVAR(nozzle), objNull])} || + {typeOf _target == QGVAR(fuelNozzle) && {!isNull (attachedTo _target)}} || // Not carried by someone else {([_unit, _target] call EFUNC(interaction,getInteractionDistance)) > REFUEL_ACTION_DISTANCE}) exitWith {false}; !(_target getVariable [QGVAR(isConnected), false]) && {!(_unit getVariable [QGVAR(isRefueling), false])}