Small question
#1

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.
Reply
#2

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.
Reply
#3

Quote:
Originally Posted by AndySedeyn
Посмотреть сообщение
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.
Cool, thanks mate.
Reply
#4

Use timestamps, clear animations if required, return 0 in OnPlayerWeaponShot to desync bullets.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)