How to do a Attack Cool down?

what i basically want is have an attack then wait so many secs before the ability is enable again. i am not to sure if its a timer node or a delay node you need to use? or something else? thanks for the help!

i would do 2 float values inside my character and say timer needed - value 100 current timer - value 0 then on tick check if current timer is = timer needed if it is do nothing if it isnt add 5 or whatever you like then crate a function that checks if timer needed and current timer is 100 if it is let the character proceed if it isnt display a message saying something like attack is in cool down you can always do a progress bar to visually show this effect !

even this way will work and save some performance

There are definitely a couple ways to handle this, but a straight forward way would be to use a Do Once node and reset it after a period of time so that it will accept an input again:

example usage:

3 Likes

as always Okarii your the best!! thanks alot DonleyStudiosinc for the help as well!