How Do you make a gun with a firerate?

Started by CreeperMiner on Thu, 04/27/2017 - 23:36

Topic category: Advanced modding

Last seen on 18:17, 1. Jun 2019
Joined Dec 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How Do you make a gun with a firerate?
Thu, 04/27/2017 - 23:36

Im making a zombie apocalypse mod and I added the Remington 700,but since its a sniper I dont want it to shoot super fast!Does anyone know how to make the gun wait after Its used or something??

 

Last seen on 04:21, 22. Aug 2019
Joined Mar 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
you could make a second item
Sat, 04/29/2017 - 06:42

you could make a second item of the gun called "reloading" and add an event so when the gun is shot it's replaced with an item that on a tick rate of (however long you want) to delete and spawn back the real gun, it's edgy but might work.

Last seen on 10:49, 7. Aug 2019
Joined Nov 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Hey, found a solution. Make…
Thu, 08/01/2019 - 14:17

Hey, found a solution.

Make a gui with a button that says "Cycle Bolt" then set the procedure as "close GUI" or something like that

So people will need to press ESC or Click the button to continue using the gun. You can add a cool cycle sound effect too, go look for Gun ASMR videos and edit the sound with Audacity