Fixed Controller support for Bag content detection
This commit is contained in:
1 parent
3df066bafb
commit
09a6c43028
1 file changed
+1
-1
@@ -460,7 +460,7 @@ end, EntityType.ENTITY_KNIFE)
|
|||||||
|
|
||||||
local holdCounter = 0
|
local holdCounter = 0
|
||||||
local function trackBagHolding()
|
local function trackBagHolding()
|
||||||
local isCardHold = Input.IsActionPressed(ButtonAction.ACTION_PILLCARD, 0)
|
local isCardHold = Input.IsActionPressed(ButtonAction.ACTION_PILLCARD, 0) or Input.IsActionPressed(ButtonAction.ACTION_PILLCARD, 1)
|
||||||
local animationName = EID.player:GetSprite():GetAnimation()
|
local animationName = EID.player:GetSprite():GetAnimation()
|
||||||
if isCardHold and string.match(animationName, "PickupWalk") and #EID.BagItems>=8 then
|
if isCardHold and string.match(animationName, "PickupWalk") and #EID.BagItems>=8 then
|
||||||
holdCounter = holdCounter + 1
|
holdCounter = holdCounter + 1
|
||||||
|
|||||||
Reference in new issue
Block a user