I am working on a FPS type game,
I need it so that when Ammo [variable] = 0, the gun stops firing.
Here are my scripts:
For the gun:
For the shot:
Offline
Ok, I would do this:
To explain, I basically put all of your scripts together (much less messy) and added a bit of stuff to it. You don;t really need the second script that shouts "You need to reload!" I just put that in for fun
And.. that should do it
Offline
Or maybe you could just put the gun firing in an If block with the statement (not (Ammo < 1))
Offline