mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-20 23:20:50 +03:00
new take option on bags from DayZ CE 1.7.7 #766
This commit is contained in:
@@ -38,7 +38,12 @@ _claimedBy = _holder getVariable["claimed","0"];
|
||||
if (_claimedBy != _playerID) exitWith {sleep 1; DZE_CanPickup = true; cutText [format[(localize "str_player_beinglooted"),_text] , "PLAIN DOWN"]};
|
||||
|
||||
if(_classname isKindOf "Bag_Base_EP1") then {
|
||||
|
||||
_PlayerNear = _holder call dze_isnearest_player;
|
||||
if (_PlayerNear) exitWith {cutText [localize "str_pickup_limit_4", "PLAIN DOWN"]};
|
||||
|
||||
diag_log("Picked up a bag: " + _classname);
|
||||
player action ["TakeBag", _holder];
|
||||
};
|
||||
|
||||
// test to see if item still exists just before adding and removing
|
||||
|
||||
Reference in New Issue
Block a user