Why is my bool not working?


I am not sure why my bool is not working…

It is allowing me to click spam my weapon when I think the bool should be stopping it.

Pull trigger function for automatic fire with an initial fire if “GetTimeSeconds” is greater or equal to “NextShotTime”

“NextShotTime” is set in fire function.

Timer controlling automatic fire works great, but I can still “click spam” or click faster than the timer to fire the weapon faster than it is supposed to.

I thought the bool would fix that, but it is not working…

Thank you.


( Both untested ).

Actually, I think your method does limit the shots, but it also does start an unlimited number of timers…

1 Like