mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
remove sleeps
This commit is contained in:
@@ -13,11 +13,8 @@ _holder = _array select 2;
|
|||||||
|
|
||||||
// if holder is null disallow pickup for 5 seconds
|
// if holder is null disallow pickup for 5 seconds
|
||||||
if(isNull _holder) exitWith {
|
if(isNull _holder) exitWith {
|
||||||
[] spawn {
|
|
||||||
sleep 5;
|
|
||||||
DZE_CanPickup = true;
|
DZE_CanPickup = true;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
// Check if closest player
|
// Check if closest player
|
||||||
_PlayerNear = _holder call dze_isnearest_player;
|
_PlayerNear = _holder call dze_isnearest_player;
|
||||||
@@ -58,8 +55,4 @@ if(_qty >= 1) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
// disallow another pickup action for 5 seconds.
|
|
||||||
[] spawn {
|
|
||||||
sleep 5;
|
|
||||||
DZE_CanPickup = true;
|
DZE_CanPickup = true;
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user