I looked through the forums for some help on reloading, but I couldn't find an answer to my question. This is what I want my weapon to do:
-Starts with 60 rounds of ammo
-Each time it fires(animation already made, called 'Fire'), ammo is reduced by 1
-When there is no ammo left, the reloading animation(already made, called 'beltReplace') plays and the weapon will not fire for 3 seconds.
-After 3.25 seconds, the ammo is restored back to 60 and the weapon can fire.
Note that I did not incorporate the beltReplace animation inside the server.cs already. What would I add to the script to make all of this happen?
I think it deals with animation sequences, but I don't know exactly how. And does it have to check every time before the weapon is fired, if there is enough ammo?