Merge pull request #862 from Ignatz-HeMan/patch-2

Prevent filling inside Vehicles
This commit is contained in:
vbawol 2017-09-14 13:23:38 -05:00 committed by GitHub
commit f9a014a2bb

View File

@ -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;