How to stop spawning projectile after a certain condition is true in a fps?
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.

