1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bow cooldown

Discussion in 'Skript' started by SrGer, Sep 19, 2021.

Thread Status:
Not open for further replies.
  1. SrGer

    SrGer Member

    Joined:
    Sep 18, 2021
    Messages:
    1
    Likes Received:
    0
    Hello, I need help to make shooting with the bow to be used again in 2 seconds
     
  2. Eszi

    Eszi Member

    Joined:
    Sep 19, 2021
    Messages:
    14
    Likes Received:
    0
    Code (Text):
    1. on shoot:
    2.     if {bow.cooldown} is not set:
    3.         set {bow.cooldown} to true
    4.         wait 2 seconds
    5.         set {bow.cooldown} to false
    6.     else if {bow.cooldown} is false:
    7.         set {bow.cooldown} to true
    8.         wait 2 seconds
    9.         set {bow.cooldown} to false
    10.     else:
    11.         cancel event
    12.         send "&cBows have a 2 second cooldown, please wait!"
    I'm positive this will work.
    If you want, you can change the message or variable, but it doesn't get more complicated than this
     
  3. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    DO NOT USE COOLDOWNS LIKE THIS. And this is horribly wrong, here are the reasons:
    1. The variable is not a list variable
    2. The variable is not player specific
    3. And in general the system is just horrible, if the server crashes it's ruined
     
Thread Status:
Not open for further replies.

Share This Page

Loading...