How can I add a cooldown for my gun ?

Started by JojoMichelDu59 on Sun, 04/14/2019 - 16:06

Topic category: Advanced modding

Last seen on 12:58, 3. Aug 2019
Joined Mar 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How can I add a cooldown for my gun ?
Sun, 04/14/2019 - 16:06

Hello, I want to create a pistol but I don't want the player to be able to spam click the shoot button (by adding a 0.5 second cooldown between each shot).

Can someone help me with that ? Thanks !

Last seen on 10:41, 6. Oct 2019
Joined Nov 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Hello. Although I haven't…
Thu, 04/18/2019 - 19:45

Hello. Although I haven't tried this yet this is possible with some procedures and custom code. If you want me to tell you reply back and I shall try my best to guide you through the process. If you don't want to deal with custom code however, you can create an issue ticket on the tracker so it may get added to the next version of MCreator.

Last seen on 10:41, 6. Oct 2019
Joined Nov 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I'm guessing you don't want…
Fri, 04/19/2019 - 15:14

I'm guessing you don't want the first option so I shall now leave this subject. Good luck.