# Is it possible to have an event play to the end after you've stopped it? (Triggering snapshot in event)

**URL:** <https://qa.fmod.com/t/is-it-possible-to-have-an-event-play-to-the-end-after-youve-stopped-it-triggering-snapshot-in-event/20404>\
**Category:** FMOD Studio\
**Created:** [July 10, 2023, 2:19pm UTC](https://qa.fmod.com/t/is-it-possible-to-have-an-event-play-to-the-end-after-youve-stopped-it-triggering-snapshot-in-event/20404 "2023-07-10T14:19:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fractanimal](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fractanimal/32/3897_2.png) [@fractanimal](https://qa.fmod.com/u/fractanimal)\
**Post date:** [July 10, 2023, 2:19pm UTC](https://qa.fmod.com/t/is-it-possible-to-have-an-event-play-to-the-end-after-youve-stopped-it-triggering-snapshot-in-event/20404/1 "2023-07-10T14:19:46Z")

</div>

I have this “timeslow” event setup.  
 ![timeslow](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/e/eb663856e3a6bd588dc298f7598923dcef4c742d.png)

When the event is started, it triggers the “timeslow” snapshot, and plays the start of the sfx, then goes into a loop. After the loop there is an “end” to the sfx.

I’m really hoping there’s a way that when the “timeslow” event is stopped, I can get it to stop looping the middle section and continue (out of the loop) to the end of the event, before stopping.

I know how to do this with a parameter, but wondering if there is a way to achieve this without one.

Thanks so much!

---

<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:** [July 11, 2023, 2:24am UTC](https://qa.fmod.com/t/is-it-possible-to-have-an-event-play-to-the-end-after-youve-stopped-it-triggering-snapshot-in-event/20404/2 "2023-07-11T02:24:12Z")

</div>

Yes, this is entirely possible. Here’s how:

1. Click on the loop region to select it.
2. Then, in the deck, click the “Add Condition” button and select “Add Event Condition” from the menu.

This adds an “Event state: not stopping” condition to the loop region, meaning the loop region will function only while the event isn’t in the “stopping” play state. As soon as the event receives a `FMOD_STUDIO_STOP_ALLOWFADEOUT` command (equivalent to your pressing the “stop” button in the transport bar once) and the event enters the “stopping” state, the loop region will become inactive, allowing the playback position to escape it and trigger the final instrument in your event.

Once the playback position moves off the right edge of that final instrument and the event is no longer producing any output, the event will naturally enter the “stopped” play state.

---

<div class="post-metadata">

**Author:** ![fractanimal](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fractanimal/32/3897_2.png) [@fractanimal](https://qa.fmod.com/u/fractanimal)\
**Post date:** [July 15, 2023, 11:45am UTC](https://qa.fmod.com/t/is-it-possible-to-have-an-event-play-to-the-end-after-youve-stopped-it-triggering-snapshot-in-event/20404/3 "2023-07-15T11:45:18Z")

</div>

omg brilliant!!!
