From 02dbb34b8d4834712a98497da3d4b66889da42e7 Mon Sep 17 00:00:00 2001 From: He-Man Date: Thu, 14 Sep 2017 19:51:06 +0200 Subject: [PATCH] Prevent filling inside Vehicles --- Sources/epoch_code/compile/EPOCH_consumeItem.sqf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/epoch_code/compile/EPOCH_consumeItem.sqf b/Sources/epoch_code/compile/EPOCH_consumeItem.sqf index e65e3103..3ad0b948 100644 --- a/Sources/epoch_code/compile/EPOCH_consumeItem.sqf +++ b/Sources/epoch_code/compile/EPOCH_consumeItem.sqf @@ -149,6 +149,9 @@ switch _interactOption do { }; }; case 4: { // Refuel 4 + if !(player == vehicle player) exitwith { + ["Fill from outside!", 5] call Epoch_message; + }; _vehicles = player nearEntities [["LandVehicle","Ship","Air","Tank"], 30]; if (cursorTarget in _vehicles) then { _vehicle = cursorTarget;