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 16:47, 9. Feb 2020
Joined Mar 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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 18:09, 2. Dec 2020
Joined Nov 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 18:09, 2. Dec 2020
Joined Nov 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 20:17, 1. Dec 2020
Joined May 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Vanilla cooldown works
Wed, 10/21/2020 - 01:07

Vanilla cooldown works

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.