Open ElderHank462 opened 11 months ago
Arrows never running out happened once in editor too, still not sure how to reproduce.
Implemented a condition before readying an arrow that checks to make sure the count of the ammunition in the inventory is at least 1. Don't know if this fixes the issue because I can't reproduce it, but if it comes up again I guess I know it doesn't work.
Found a way to reproduce this.
When the game is reloaded with arrows already equipped, when the last arrow is fired the arrow remains in the inventory with a count of 0 and it stays equipped in playerEquipment. The logic is still functional: the player can't shoot more arrows than they have, but the displays are all wrong.
Seems to be fixed now. Keeping the issue open in case it comes up again.
Items spawning twice was because item prefabs were not marked as ES3 prefabs
Not reproduceable, only happened on initial load. Didn't clear persistent data path before building, may have contributed?