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"

Interruptable input delay?

I want to have a delay for an input, but the player has to keep the input held down for the duration of the delay, and the action doesn't fire if the input stops before the delay is finished. For example, I want my character to crouch, but I want to make it difficult to crouch accidentally. So I want the player to press the crouch button, and keep it held for a 5th of a second, and if the player stops pushing the crouch button before the 5th of a second is up, the crouch doesn't happen. Is such a thing possible? And how would one go about pulling it off?

Apologies if this question is answered elsewhere.

Product Version: Not Selected
more ▼

asked Mar 14 '15 at 06:33 AM in Blueprint Scripting

avatar image

1 2

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

1 answer: sort voted first

There is a Node called Get Input Key Time Down that is part of the Player Controller that essentially holds the information of how long a key has been pressed. That you could use to handle such things.

more ▼

answered Mar 14 '15 at 09:53 AM

avatar image

Martin Egger
388 17 10 29

(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