mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Update player_drink.sqf
Add empty food/drink cans into vehicle inventory. Falls out if theres no inventory space.
This commit is contained in:
@@ -48,10 +48,15 @@ if (["ItemSoda",_itemorignal] call fnc_inString) then {
|
||||
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
|
||||
};
|
||||
|
||||
if (_hasoutput and !_invehicle) then {
|
||||
if (_hasoutput) then {
|
||||
// Selecting output
|
||||
_itemtodrop = drink_output select (drink_with_output find _itemorignal);
|
||||
|
||||
if (_invehicle) exitWith {
|
||||
sleep 2;
|
||||
(vehicle player) addMagazineCargoGlobal [_itemtodrop,1];
|
||||
};
|
||||
|
||||
sleep 3;
|
||||
_nearByPile= nearestObjects [(getPosATL player), ["WeaponHolder","WeaponHolderBase"],2];
|
||||
if (count _nearByPile ==0) then {
|
||||
|
||||
Reference in New Issue
Block a user