How can I add a cooldown for my gun ?

Started by JojoMichelDu59 on

Topic category: Advanced modding

Active 5 years ago
Joined Mar 2018
Points:
708

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
How can I add a cooldown for my gun ?

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 !

Active 3 years ago
Joined Nov 2018
Points:
978

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 571
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.

Active 3 years ago
Joined Nov 2018
Points:
978

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 571
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.

Active 4 years ago
Joined Sep 2020
Points:
618

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 15
Hi can you explain it to me?
Wed, 10/21/2020 - 00:35

Hi can you explain it to me?

Active 4 years ago
Joined Oct 2020
Points:
617

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
Old topic. Right ow just…
Wed, 10/21/2020 - 02:04

Old topic. Right ow just write cooldown at prodecure box it shows you things and templates does exist.