# Events in Sequence not firing one after the other. Help?

**URL:** <https://forums.unrealengine.com/t/events-in-sequence-not-firing-one-after-the-other-help/70523>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [August 2, 2016, 9:25pm UTC](https://forums.unrealengine.com/t/events-in-sequence-not-firing-one-after-the-other-help/70523 "2016-08-02T21:25:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![RedSaturnSix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RedSaturnSix](https://forums.unrealengine.com/u/RedSaturnSix)\
**Post date:** [August 2, 2016, 9:25pm UTC](https://forums.unrealengine.com/t/events-in-sequence-not-firing-one-after-the-other-help/70523/1 "2016-08-02T21:25:05Z")

</div>

Hi folks,

I’ve followed an online tutorial for a quick and easy random level generator based on pre-defined level ‘chunks’ but have run into a snag.

I’m trying to use the system to create two worlds, one above the other but have run into a snag.

The first half of the world generates fine, but the second half doesn’t fire after the first half has been generated.

The second part does however fire when it runs on it’s own.

This leads me to believe that for some reason the sequence isn’t firing.

Any suggestions or ideas where I’m messing up?

Many thanks.

 ![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/8/a68bb55acdf43e81cd937dcac34a05c47c70ab5d.png)  
 ![Capture2.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/1/6c1e65a2ebb0a97ed401ef13ec6aa6beb6d3ceda.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9f47de28](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9f47de28](https://forums.unrealengine.com/u/anonymous_user_9f47de28)\
**Post date:** [August 2, 2016, 9:43pm UTC](https://forums.unrealengine.com/t/events-in-sequence-not-firing-one-after-the-other-help/70523/2 "2016-08-02T21:43:24Z")

</div>

Sequence nodes don’t wait before they call the next wire. Just manually route the wire from the end of part 1 to the start of part 2.

For that matter, loops don’t wait for the loop body to finish prior to proceeding to the next iteration.

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/8/768a8166c329802b2a3bc206d25d4e8ef116d406.png)

---

<div class="post-metadata">

**Author:** ![RedSaturnSix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RedSaturnSix](https://forums.unrealengine.com/u/RedSaturnSix)\
**Post date:** [August 3, 2016, 8:31am UTC](https://forums.unrealengine.com/t/events-in-sequence-not-firing-one-after-the-other-help/70523/3 "2016-08-03T08:31:47Z")

</div>

Hmm, that didn’t seem to work. Any other reason it might be falling over?

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [August 3, 2016, 9:17am UTC](https://forums.unrealengine.com/t/events-in-sequence-not-firing-one-after-the-other-help/70523/4 "2016-08-03T09:17:11Z")

</div>

Well, I would say that Sequence nodes do in fact fire the second wire after the first one is through.

Otherwise a lot of my own logic wouldn’t work and the Sequence node itself would be useless.

Now, what could lead to a second half of the SAME code not working if called together with the first part?

Hm, let’s see, is there maybe something that should be unique? Something that is even called “unique”?  
Maybe something like an Instance Name that you are setting to “INDEX1xINDEX2”? 😛

Na jokes aside, do you maybe use the same names for the Instances? I see you combine the Loop indices  
with an “x” in the Append node. Is the lower half of the code using the same Loop indices and maybe just not creating the instance  
due to reusing the same name?

---

<div class="post-metadata">

**Author:** ![RedSaturnSix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RedSaturnSix](https://forums.unrealengine.com/u/RedSaturnSix)\
**Post date:** [August 3, 2016, 9:44am UTC](https://forums.unrealengine.com/t/events-in-sequence-not-firing-one-after-the-other-help/70523/5 "2016-08-03T09:44:04Z")

</div>

Beauty! Changed the x to a y and presto, worked. Amazing. Thank you both.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9f47de28](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9f47de28](https://forums.unrealengine.com/u/anonymous_user_9f47de28)\
**Post date:** [August 3, 2016, 8:33pm UTC](https://forums.unrealengine.com/t/events-in-sequence-not-firing-one-after-the-other-help/70523/6 "2016-08-03T20:33:06Z")

</div>

> [@eXi;575065](#):
>
> Well, I would say that Sequence nodes do in fact fire the second wire after the first one is through.

Could be wrong, but testing on my end has indicated that Sequence nodes only ensure that the very first function/event/node in the execution chain on a higher (position) branch get called before the very first function/event/node in the execution chain on lower (position) branches. The order they’re called in is preserved, and can be relied on. However, there is either no delay, or a very short delay, and the node does not wait for it’s top branch to finish before proceeding to the next branch.

Order (of being called) is preserved. But if your top branch takes too long and your bottom branch relies on data from the top branch’s execution- things can go wrong.

That being said, I totally missed the actual error .

---

<div class="post-metadata">

**Author:** ![RedSaturnSix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RedSaturnSix](https://forums.unrealengine.com/u/RedSaturnSix)\
**Post date:** [August 4, 2016, 10:14pm UTC](https://forums.unrealengine.com/t/events-in-sequence-not-firing-one-after-the-other-help/70523/7 "2016-08-04T22:14:48Z")

</div>

In all fairness I didn’t included a screenshot of the second function so it was easy to miss.
