mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix siphon fuel
Thx @ch0c
This commit is contained in:
@@ -9,10 +9,10 @@ _vehicle = _this select 3;
|
||||
player removeAction s_player_siphonfuel;
|
||||
_hasHose = "equip_hose" in magazines player;
|
||||
|
||||
if (!_hasHose) exitWith {localize "str_siphon_hose" call dayz_rollingMessages; };
|
||||
if (!_hasHose) exitWith {dayz_actionInProgress = false; localize "str_siphon_hose" call dayz_rollingMessages; };
|
||||
|
||||
_PlayerNear = {isPlayer _x} count ((getPosATL _vehicle) nearEntities ["CAManBase", 12]) > 1;
|
||||
if (_PlayerNear) exitWith {localize "str_pickup_limit_5" call dayz_rollingMessages;};
|
||||
if (_PlayerNear) exitWith {dayz_actionInProgress = false; localize "str_pickup_limit_5" call dayz_rollingMessages;};
|
||||
|
||||
_abort = false;
|
||||
_configVeh = configFile >> "cfgVehicles" >> typeOf _vehicle;
|
||||
|
||||
Reference in New Issue
Block a user