x

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"

Delay node isn't delaying flow control

Hello!

I created a simple button. And I added a delay so that when the player presses the button, it will take certain amount of time before the door will start opening. The problem is that the delay won't delay anything. When I run the game, I press the button and the door will open (or close) immediately! I added one delay before I unlock the the button again (To prevent the button from being pressed multiple times, and that one does work properly. Here is the Blueprint code I am using. The highlighted node is the one that doesn't do anything.

alt text

Thanks!

Product Version: Not Selected
Tags:
more ▼

asked Feb 02 '15 at 06:06 PM in Bug Reports

avatar image

Motanum
630 58 65 306

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

1 answer: sort voted first

Well, this was a quickie one.

There seems to be a problem if the delay isn't connected to anything. I simply added the delay in the 'then 1' output node of the sequence.

alt text

more ▼

answered Feb 02 '15 at 06:13 PM

avatar image

Motanum
630 58 65 306

avatar image Martin Egger Feb 02 '15 at 09:28 PM

Hey

As far as I understand the Sequence Node, is that all will be called in order but without any delay. Meaning if you have your delay in Then 0 it will consequently not Delay the Then 1 Sequence but just follow-ups in Then 0 if there was one.

https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/FlowControl/index.html#sequence

Best

avatar image Ben Halliday STAFF Feb 03 '15 at 08:05 PM

Hi Motanum,

As Martin correctly mentioned, a Sequence node will run through each event without delay. Your solution will work for you in this case, but be aware when using a Sequence that a delay will only delay what follows it in the event, but will not delay the next event from firing. So in the example above, you have a delay at the beginning of your second event, which will delay the door opening nodes, but the Play node in the third event will fire before the delay has finished and thus before the door opening begins. Generally, if you need events to follow each other with any sort of passage of time, you should link them all together in the same event. The Sequence will fire each event virtually simultaneously.

avatar image Motanum Feb 04 '15 at 11:20 PM

Yup, I think that is what's happening. Which is good in my case. Unfortunately with the preview 5 no sound bug, I cant do many test. Thanks!

avatar image nco2k Nov 19 '17 at 08:05 AM

how is this not a bug? i often use sequence to split up large chains of code, for the sake of readability. i expect sequence to, as the name suggests, execute the code in sequence, and not just hit and run. you should really consider fixing this, and introduce a NoWaitSequence or whatever, for those who actually need this very specific behavior. or leave Sequence as is, and give us a Then that waits.

alt text

pic.jpg (81.0 kB)
(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