Closed ElderHank462 closed 11 months ago
Screenshots of PlayerCombatAgent and PlayerEquipment when functioning correctly
Screenshots of PlayerCombatAgent and PlayerEquipment when malfunctioning
Both appear exactly the same :/
The issue was that the hold interaction on the Ranged Attack input action was being overriden when the bindings were loaded from the JSON file, causing the "fire" action to call at the same time as the "draw" action and messing up the sequence of things.
Fixed by having the ControlManager reapply the hold interaction.
When picking up and equipping ranged weapon everything seems to work fine.
When the game is reloaded with the ranged weapon still equipped, mousing down immediately releases an arrow that stays stuck in the air, has collision enabled, and can't be picked up. These floating arrows can be picked up upon reloading, though.
This issue doesn't occur if, once the game is reloaded, the player unequips and then re-equips the bow and arrow.