moved above takebag

This commit is contained in:
[VB]AWOL
2013-11-24 18:45:21 -06:00
parent 09ce285be5
commit b065aa9db3

View File

@@ -37,6 +37,9 @@ _claimedBy = _holder getVariable["claimed","0"];
if (_claimedBy != _playerID) exitWith {sleep 1; DZE_CanPickup = true; cutText [format[(localize "str_player_beinglooted"),_text] , "PLAIN DOWN"]};
// test to see if item still exists just before adding and removing
if(isNull _holder) exitWith { sleep 1; DZE_CanPickup = true; };
if(_classname isKindOf "Bag_Base_EP1") then {
_PlayerNear = _holder call dze_isnearest_player;
@@ -46,9 +49,6 @@ if(_classname isKindOf "Bag_Base_EP1") then {
player action ["TakeBag", _holder];
};
// test to see if item still exists just before adding and removing
if(isNull _holder) exitWith { sleep 1; DZE_CanPickup = true; };
_obj = nearestObjects [(getPosATL player), [(typeOf _holder)], 5];
_qty = count _obj;