Posts: 294
Threads: 80
Joined: Oct 2013
Reputation:
0
How to delay between shots in a weapon, I mean, I've tried to use timers, but I can't solve how to put a timer between bullets within the gun, for an example the taser system within LS-RP requires to /reload with animation before tasing again, but I tried to put a timer and nothing happened, it keeps shooting continuously non-stop.
Posts: 1,206
Threads: 39
Joined: Feb 2014
Reputation:
0
You have to create a variable which keeps track on when the timer is running and when it's finished. Use that variable to prevent the player from firing when needed.
Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
Use timestamps, clear animations if required, return 0 in OnPlayerWeaponShot to desync bullets.