Hi. I created A Simple Equip And Unequip Weapon System From Watching Some Of The Video Tutorial And Also A Simple Gun.The Problem Is The Weapon Still Fires in the unequip Mode How Can this Be Resolved Any help would be Appreciated
Could you please put the Subject line into the subject and your question in the comment area? You did it backwards
Well to give you any real advice we would have to see the code. Also what jtsmith said.
The most straightforward way to approach this would be to have a boolean called bEquipping which you set to true at the beginning of your equip phase and set to false at the end of the phase. (You could also use it for when you’re in unequiping state)
You can then implement a function called CanFire() which returns false if the bEquipping is set and true if bEquipping is not set.
Before the firing code you do a test/branch with the CanFire function. If it returns false you don’t allow the weapon to fire otherwise you let it proceed.
Sorry about that i did notice after posting the question. So i resposted it
Thanks for the advice i will give it a try and let you know what happens
Sorry i have not replied for a while thanks again for the advice. the issue has been sorted with a fire not fire Enum