new take option on bags from DayZ CE 1.7.7 #766

This commit is contained in:
[VB]AWOL
2013-11-24 08:39:55 -06:00
parent c392944bfd
commit b51440d6c1
4 changed files with 113 additions and 1 deletions

View File

@@ -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