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"

[Closed] Crash while using while loop with delay in blueprints.

I am trying to put a delay in my animation blueprint to smooth the animation in my game and when I add a delay to the loop to do so it will crash the game. I am able to put the delay anywhere else in the loop and it works(but doesn't do anything no matter what I set it too). when I put it right after the loop in the picture it crashes the game. Is this a bug with the engine or is it my mistake?

alt text

Product Version: Not Selected
Tags:
looperror.png (435.0 kB)
more ▼

asked Mar 11 '14 at 01:56 AM in Bug Reports

avatar image

ue4-archive ♦♦ STAFF
49.9k 3662 1986 9113

(comments are locked)
10|2000 characters needed characters left

The question has been closed Mar 15 '15 at 04:47 PM by Ben Halliday for the following reason:

Archive Post


1 answer: sort voted first

Hey Aeson,

Thanks for your feedback. The issue you are experiencing occurs because the WhileLoop is not currently able to process Delays or Timelines within the Loop Body. I have entered a request for a WhileLoop mode with a built in Delay so that users can set a Duration between each loop.

In the meantime, there is a work-around you can try. If you double-click the WhileLoop node, you'll see how the Macro is setup: a Branch node checks the condition and then runs to a Sequence node to process the Loop Body. You can set up the WhileLoop manually and include a Delay between the Branch and the Sequence.

alt text

It's a bit convoluted, but this should work for you. The Branch checks your Condition, and while it's true it runs to the Delay. It then goes to the Sequence to process the rest of your Loop Body, then goes back to the Branch to check the Condition again.

I hope this helps. Please let me know if you have any questions.

Best,

Ben Halliday

more ▼

answered Mar 11 '14 at 01:56 AM

avatar image

ue4-archive ♦♦ STAFF
49.9k 3662 1986 9113

avatar image Squarepupil Mar 15 '15 at 04:41 PM

This is really helpful! Thank you for the BP example. I finally got my function working as intended.

(comments are locked)
10|2000 characters needed characters left

Follow this question

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

Answers to this question