Takes two ammo when firing

its taking two ammo when i fire the gun but it should only be taking one, the event already has trigger once while true so im not sure why its taking two

You could try using a boolean variable ā€˜canfire’ and set it to true when button released. If it was a key press - you could use ā€˜just pressed’ and there was a discussion last month about the need for a similar thing with the mouse button. See below i added a scenetimer too - but you can probably just use the parameters in fire bullet - i’ve not used fire bullet b4

I came here to answer him, but you said all i was going to say!

1 Like

Is the animation changing when it fires? The trigger once takes all previous conditions of the event into account. The trigger once gets removed or reset when either condition changes it’s state.

If the button is still pressed when the animation condition goes from true then to false and then back to true then it would fire again.

If this is happening then you could move the animation condition below the trigger once so that only the mouse condition is used for it.

Are 2 bullets firing? If they fired on the same frame or consecutive frames then they would look like 1 bullet.

The ā€œfireā€ action already handles ammo. You don’t need to ask it to remove another one.

2 Likes

When the bullet was fired it was already subtracting from the ammo count, I didn’t need to add the subtract one.

1 Like

Thank you! That’s what was causing the issue <3