Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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!!

Product Version: UE 4.20
more ▼

asked Nov 24 '18 at 10:34 PM in Using UE4

avatar image

1 1 2

avatar image dabs863 Dec 30 '18 at 05:16 AM

did you get this fixed or still needing some help

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

You can try the following ...

  1. Make a boolean variable called, for example, "sliding enabled?"

2.Set the default of the variable to true

  1. Make a Check before the sliding code: If sliding enabled? is true, only then should the character able to slide -->Allows to control whether it is possible to slide or not

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

  1. At Event Tick make a delay node and set it to 5 -->The 5 seconds countdown

6.Conect the delay node pin with the sliding enabled? and set it to true -->Every 5 seconds it is possible to slide

more ▼

answered Nov 24 '18 at 11:09 PM

avatar image

76 1 4 5

avatar image EvolutionGaming Nov 24 '18 at 11:16 PM

It means 1. 2. 3. 4. 5. 6. :) There is a bug

avatar image Twitch_Smivl Nov 24 '18 at 11:30 PM

Hey thank you so much for your answer. Would you happen to know how to do the other two things I mentioned? If not then that’s completely fine. And I’m going to do what you said tomorrow morning to see if it works. I’ll let you know. :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question