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 in middle of ForLoop Body

Hi, I have been trying to make a blueprint where player needs to click a button and based on what button he clicks different actions happen. I cant manage to get working delay in for loop(where blueprint needs to wait for player). I know that it cant be done in standard ForLoop, but I cant make it work in custom either. I dont understand for loops in unreal that good so its probably because of that. This is what I want my delay to look like: http://imgur.com/a/4OobF And here is how i tried adding delay in custom ForLoop: http://imgur.com/a/1ZLtQ

Product Version: UE 4.16
Tags:
more ▼

asked Aug 23 '17 at 10:11 AM in Blueprint Scripting

avatar image

GetCrab
13 1 2 4

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

1 answer: sort voted first

Remember that a delay will always interrupt your exec flow so you CAN'T use it in a loop. If you relally need a loop w/ delay you have to set up your own, I can suggest this setup, I've done it in 5 mins so you can probably improve it:

alt text

EDIT: since you are new: to zoom images on answerhub rightclick on it and open in a new tab/window

delayloop.png (102.7 kB)
more ▼

answered Aug 23 '17 at 10:54 AM

avatar image

Iohoilpotere
681 23 11 27

avatar image GetCrab Aug 23 '17 at 11:06 AM

Thank you, I will try that now.

avatar image GetCrab Aug 23 '17 at 11:16 AM

It works great for what I need, I just need to modify it now, thank you again

(comments are locked)
10|2000 characters needed characters left
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