How to I create a wait time before being allowed to do the same animation
Hey everyone! I'm currently trying to make an FPS game. I just finishing adding in movement and have a sliding animation. I wanted to know how to add a delay before being able to slide again? So I would like it to be where I use the slide and then I can't spam it so there would be a 5-second cooldown. Would also love if I could get help on how to connect that to a progress bar so I can notify the player when they can slide again. Would also be amazing if you could tell me how to make it so you just have to press the button to slide and not hold it. I tried looking in the input section in the project settings but couldn't find anything. Thxs in advance and have a great day!!
asked Nov 24 '18 at 10:34 PM in Using UE4
You can try the following ...
2.Set the default of the variable to true
4.At the end of the key where the sliding code is, set sliding enabled? to false -->After you slide, you can't slide again
6.Conect the delay node pin with the sliding enabled? and set it to true -->Every 5 seconds it is possible to slide
Follow this question
Once you sign in you will be able to subscribe for any updates here