Fix siphon fuel

Thx @ch0c
This commit is contained in:
AirwavesMan
2021-01-22 21:02:08 +01:00
parent aeb478e42c
commit 2a6ac998f1

View File

@@ -9,10 +9,10 @@ _vehicle = _this select 3;
player removeAction s_player_siphonfuel; player removeAction s_player_siphonfuel;
_hasHose = "equip_hose" in magazines player; _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; _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; _abort = false;
_configVeh = configFile >> "cfgVehicles" >> typeOf _vehicle; _configVeh = configFile >> "cfgVehicles" >> typeOf _vehicle;