Announcement

Collapse
No announcement yet.

Problem with Delay in For Loop

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problem with Delay in For Loop

    Hey everyone, I'm a student building my first game in Unreal. I recently added a delay to one of my For Loops, which doesn't seem to have any effect, so I wished to ask why that might be. I've attached a screenshot for your reference.
    Essentially, my For Loop is supposed to count down from 3 to 0, the information from which goes to my HUD, and after that is done, my For Each Loop has to begin working. Surprisingly, the game logic ignores the Delay in my For Loop. I tried printing the Wave Countdown Values in the Loop as well, but I get just a singular '-1' print when I play the game. Any fix for this?

    #2
    Solution: You need to customize the underlying ForLoop macro (double-click on the node). Placing a Delay like you have, means the entire loop gets executed BEFORE the code after the delay. Tip: Get used to searching the forums. This is a topic which has come up before 100's of times including old posts by you. So its often quicker to just do a search... Overall, the forums aren't what they were 2014-2016, so your chances of getting a reply to a FAQ-type question aren't good...
    Last edited by EntrpriseCustomr; 01-10-2020, 03:26 AM.

    Comment

    Working...
    X