# Pause Timeline From Parameter

**URL:** <https://qa.fmod.com/t/pause-timeline-from-parameter/12798>\
**Category:** Unity\
**Created:** [November 6, 2016, 4:35am UTC](https://qa.fmod.com/t/pause-timeline-from-parameter/12798 "2016-11-06T04:35:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaboit](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@jaboit](https://qa.fmod.com/u/jaboit)\
**Post date:** [November 6, 2016, 4:35am UTC](https://qa.fmod.com/t/pause-timeline-from-parameter/12798/1 "2016-11-06T04:35:24Z")

</div>

Hi All,

Wanted to see what would be the recommended way to do this. Basically when a player leaves a trigger area, or gets far enough, I want to pause the timeline of an event and add a small fade out. I know about the pause event class, but I’m wondering where I could add a fade in that case, ideally editable from FMOD studio.

Many Thanks!  
Juan

---

<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:** [November 9, 2016, 12:57am UTC](https://qa.fmod.com/t/pause-timeline-from-parameter/12798/2 "2016-11-09T00:57:37Z")

</div>

Unfortunately, as of the time of writing (November of 2016) there is no easy way to add a fadeout on event pause.

However, it is possible to add a fadeout to an event that can be played at any time; Simply automate the event’s master track volume on a parameter and assign that parameter a seek speed. If you set the value of the parameter a short period of time before pausing the event, you should be able to get the effect you want.

---

<div class="post-metadata">

**Author:** ![jaboit](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@jaboit](https://qa.fmod.com/u/jaboit)\
**Post date:** [November 10, 2016, 11:09pm UTC](https://qa.fmod.com/t/pause-timeline-from-parameter/12798/3 "2016-11-10T23:09:04Z")

</div>

Thanks for this - I ended up using getTimelinePosition before stopping with allowed fadeout, then to un-pause, setTimelinePosition and start. Thanks!
