mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Prevent filling inside Vehicles
This commit is contained in:
parent
6672107b0b
commit
02dbb34b8d
@ -149,6 +149,9 @@ switch _interactOption do {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
case 4: { // Refuel 4
|
case 4: { // Refuel 4
|
||||||
|
if !(player == vehicle player) exitwith {
|
||||||
|
["Fill from outside!", 5] call Epoch_message;
|
||||||
|
};
|
||||||
_vehicles = player nearEntities [["LandVehicle","Ship","Air","Tank"], 30];
|
_vehicles = player nearEntities [["LandVehicle","Ship","Air","Tank"], 30];
|
||||||
if (cursorTarget in _vehicles) then {
|
if (cursorTarget in _vehicles) then {
|
||||||
_vehicle = cursorTarget;
|
_vehicle = cursorTarget;
|
||||||
|
Loading…
Reference in New Issue
Block a user