Jump to content
  • 0

Skill Cooldown


Mad Walker

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   9
  • Joined:  06/25/12
  • Last Seen:  

Is it possible to set some skills that has cooldown? When a player died
after he re-spawn, the said skill will skip the "cooldown  thing" and
can be used again? For example; Hallucination Walk is used then suddenly
the player died. Hallucination Walk has a cooldown of 5 minutes. When
he re-spawn, that 5 minutes will be disregarded and hallucination walk
can be used again.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

simple way is record time when use skill,

time = now + cd

and if time > now ---> can't use this skill

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...