How to stop spawning projectile after a certain condition is true?

How to stop spawning projectile after a certain condition is true in a fps?

Hi

Just create a branch before the spawn node, the condition may be like the ammo, use a condition like this:

After spawning the projectile, you can put a counter in the end, like this

So, everytime you spawn the projectile, it reduced the ammo by 1

Hi.
There is two common ways: using the node “Gate” where it is open when the button is pressed and closed when released.
The second common way would be using a SetTimer which keep triggering a function every X seconds and you kill this timer when the button is released or the ammo is over.

In your case, you open the Gate node or set the timer when your condition is true and close the gate or clear the timer when it is false.

Nodes names are: Gate, SetTimerByFunctionName, ClearTimerByHandle.
I hope this help you.