# Nested Events and the "Stopping" trigger

**URL:** https://qa.fmod.com/t/nested-events-and-the-stopping-trigger/17015
**Category:** FMOD Studio
**Created:** [April 9, 2021, 6:12pm UTC](https://qa.fmod.com/t/nested-events-and-the-stopping-trigger/17015 "2021-04-09T18:12:28Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![thelaumix](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@thelaumix](https://qa.fmod.com/u/thelaumix)
#### Post date: [April 9, 2021, 6:12pm UTC](https://qa.fmod.com/t/nested-events-and-the-stopping-trigger/17015/1 "2021-04-09T18:12:28Z")

</div>

Hey there,

I am trying to build up an additive score using nested events. My plan was to loop the timeline over a nested event until some trigger will break that loop. At this point the nested event should trigger its “Stopping” condition and end properly, but all it does is just cut off once the timeline event ends. Is it possible to achieve this kind of behavior or do I need to use transitions and parameters for this?

Best regards  
Lukas

---

<div class="post-metadata">

### Author: ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)
#### Post date: [April 9, 2021, 7:14pm UTC](https://qa.fmod.com/t/nested-events-and-the-stopping-trigger/17015/2 "2021-04-09T19:14:21Z")

</div>

Did you simply try to set AHDSR (especially R) on the nested event? What do you mean by “end properly”? Please give us some screenshots and informations, for a more precise answer.

---

<div class="post-metadata">

### Author: ![thelaumix](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@thelaumix](https://qa.fmod.com/u/thelaumix)
#### Post date: [April 9, 2021, 7:40pm UTC](https://qa.fmod.com/t/nested-events-and-the-stopping-trigger/17015/3 "2021-04-09T19:40:12Z")

</div>

Yeah, AHDSR did kind of solve the problem, thank you! I also figured out that there are such things as magnet regions - must have missed the patch nodes.

By “end properly” I meant that the event optimally should have ended like the event would stop if it was normally forced to, not simply be cut of because the nested region is not continuing. But I suppose that’s not a thing! But AHDSR and Magnet Regions should do it. Thanks for your support! 🙂

---

<div class="post-metadata">

### Author: ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)
#### Post date: [April 9, 2021, 7:49pm UTC](https://qa.fmod.com/t/nested-events-and-the-stopping-trigger/17015/4 "2021-04-09T19:49:43Z")

</div>

> [@thelaumix](#):
>
> By “end properly” I meant that the event optimally should have ended like the event would stop if it was normally forced to, not simply be cut of because the nested region is not continuing.

But how would stop the event if it was normally forced to? It would only trigger its release, if set (and if stop is set to “allow fadeout”). So it will behave exactly the same when untriggering a nested event with a release set up.

---

<div class="post-metadata">

### Author: ![thelaumix](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@thelaumix](https://qa.fmod.com/u/thelaumix)
#### Post date: [April 9, 2021, 10:51pm UTC](https://qa.fmod.com/t/nested-events-and-the-stopping-trigger/17015/5 "2021-04-09T22:51:02Z")

</div>

It would indeed behave differently because I placed a transition region controlled by a “Stopping” trigger to it. So it would not fade out, but end the track by transitioning to an ending sequence. But I also found out that there are command events now, so I can force the nested event to stop manually. Love to see that FMOD gets more and more feature rich! ^^

---

<div class="post-metadata">

### Author: ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)
#### Post date: [April 9, 2021, 11:06pm UTC](https://qa.fmod.com/t/nested-events-and-the-stopping-trigger/17015/6 "2021-04-09T23:06:15Z")

</div>

Indeed, untriggering a nested event isn’t strictly equivalent to stopping it, when using “stop event” conditions. But you’ll neither be able to stop the nested event by a command event (you can only stop event by calling the top hierarchy event). However, you’ll be able to achieve what you want with a command instrument and a boolean parameter instead!

---

<div class="post-metadata">

### Author: ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)
#### Post date: [April 13, 2021, 5:43am UTC](https://qa.fmod.com/t/nested-events-and-the-stopping-trigger/17015/7 "2021-04-13T05:43:26Z")

</div>

> [@thelaumix](#):
>
> My plan was to loop the timeline over a nested event until some trigger will break that loop. At this point the nested event should trigger its “Stopping” condition and end properly, but all it does is just cut off once the timeline event ends.

It sounds like your top-level event might be stopping itself once the timeline playback position escapes the loop region and leaves the right edge of the content in your event. If the parent event stops, any nested or referenced events playing through that parent event are stopped immediately, as there is no longer a parent event for them to play through.

Try setting the top-level event to be persistent, and see if that helps. Of course, if you make your top-level event persistent, it won’t end naturally, so you’ll have to manually stop it after allowing the nested event’s stopping behavior to play out.
