Hello, so I have two ItemPickUp abilities because I want the player to be able to pick up weapons with a specific button and the ammo with another. I also require the player to currently have the weapon that the ammo belongs to in order to pick up the ammo (i.e. must have a pistol to pick up pistol ammo).
So far it works, but my problem comes when the pick ups are overlapping.
As you can see I have the weapons and their respective ammo in cases, but when I pick up the weapon, it seems like the ammo pick-up ability does not get updated. I have to get away from the item pick up and try again and then it will work. Any idea why?
I think it's because I am required to exit the trigger zone and enter it again but if that is the case, then how could I force an update? Am I wrong to have two separate pick-up abilities? I attached the object's hierarchy in case it helps.
So far it works, but my problem comes when the pick ups are overlapping.
As you can see I have the weapons and their respective ammo in cases, but when I pick up the weapon, it seems like the ammo pick-up ability does not get updated. I have to get away from the item pick up and try again and then it will work. Any idea why?
I think it's because I am required to exit the trigger zone and enter it again but if that is the case, then how could I force an update? Am I wrong to have two separate pick-up abilities? I attached the object's hierarchy in case it helps.