#Something wrong with my rocket launcher reload

1 messages · Page 1 of 1 (latest)

prime helm
#

I made a rocket launcher that sprays flames behind it when it shoots and it takes 1 second to reload. However if I try to shoot while it is reloading it restarts the reloading sequence and somehow still makes the shooting sound. I have been messing around with this for an hour or so and can't make it work. It seems to be bound to the lifetime which is not something I want.

royal condor
#

Maybe set a bool to check whether you are reloading.
var reloading = false

reload script

reloading = true

end of reloading

reloading = false

shooting

if not reloading:
#shoot code