grkwasniewski
New member
Hi all
I have this scenario that I want to cover:
Is there a better way to temporarily disable the currently equipped weapon or maybe I just need to update my current logic?
I have this scenario that I want to cover:
- The Player has a weapon equipped - let say it's in item set == 0
- The player tries to pick up some game object - for this example let's say it will be a simple barrel. I have a separate script for that.
- When the Player pickups the barrel, the currently equipped weapon should be disabled (preferably unequipped).
- Currently I'm using Item.StartUnequip() and Item.StartEquip() BUT...
- To throw a pickup barrel Player uses the left mouse button. After the barrel is thrown, the weapon is reequipped AND it fires a single shoot (which thing I don't want). Even if I add the delay for the Item.StartEquip() the weapon will still fire a shoot.
Is there a better way to temporarily disable the currently equipped weapon or maybe I just need to update my current logic?