From 56f95f36e4cdc92f07c9b1bec36040b93efb4318 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Wed, 4 Dec 2013 14:11:18 -0600 Subject: [PATCH] remove sleeps --- SQF/dayz_code/actions/object_pickup.sqf | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/SQF/dayz_code/actions/object_pickup.sqf b/SQF/dayz_code/actions/object_pickup.sqf index eb6eef188..83e133860 100644 --- a/SQF/dayz_code/actions/object_pickup.sqf +++ b/SQF/dayz_code/actions/object_pickup.sqf @@ -13,10 +13,7 @@ _holder = _array select 2; // if holder is null disallow pickup for 5 seconds if(isNull _holder) exitWith { - [] spawn { - sleep 5; - DZE_CanPickup = true; - }; + DZE_CanPickup = true; }; // Check if closest player @@ -58,8 +55,4 @@ if(_qty >= 1) then { }; }; -// disallow another pickup action for 5 seconds. -[] spawn { - sleep 5; - DZE_CanPickup = true; -}; \ No newline at end of file +DZE_CanPickup = true; \ No newline at end of file