How can I add a cooldown for my gun ?

Started by JojoMichelDu59 on

Topic category: Advanced modding

Last seen on 16:47, 9. Feb 2020
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 !

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

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

Last seen on 16:18, 30. Nov 2020
Joined Sep 2020
Points:

User statistics:

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

Hi can you explain it to me?

Last seen on 02:48, 21. Oct 2020
Joined Oct 2020
Points:

User statistics:

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