Hi, new day new problems :D
So, first I would like to present a video of a problem:
VIDEO - it can be loud, especially later, so I reccomend to turn off the audio or set it to about 50% :)
As you can see, there are red balls on ground, which is two items to collect: Sword and Axe. First, I go for the sword, equip it by drag 'n' drop function and "holster" it. I have two slots for weapon and by entering "H" on keyboard I managed to switch game state from "Weapon In Hand" and "Weapon Holster".
Next step, I go for an axe. And there is a strange thing going on: suddenly the sword appears in my hand... And by switching weapons, I have them multiplied by two - on the back and in my hand :D I have to "holster" it and then everything works fine. I can switch weapons by inventory, but weapon itself shouldn't be equipped on collection.
For the first collected weapon, never mind if this is an Axe or a sword, it come down to the inventory, which is great. The problem occurs when I'm picking up another weapon ;/
The rest is hard to say, I'd need to see your equipment slot setup, the equip slot setup of those weapons and what functionality you use when using the H key (I assume a schematic).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Basically, it should first check if any weapon is equipped (first node), then check the game state (if weapon is "Holster" or not) and play animation/check state. But then, why it shows another weapon of the same kind (sword) after collect axe?
After collecting the 2nd weapon, is it actually equipped on an equipment slot or just displayed via equipment viewers? You can e.g. check this either in an equipment menu or via the inspector of the combatant's game object.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Then, I holster it and go for an Axe.
But when I'm picking up second item, suddenly it appears in both sockets:
Equipment Viewer still shows "Dragonblade Sword". And it's still fine, because I don't want to equip an Axe yet. But why Sword prefab shows up suddenly in both sockets ;/?
These are my settings for Equipment Slot and Equipment Slot Template:
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Checked my emails and didn't get one around that time (April 24).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Checked my emails again and couldn't find it.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!