# Is it possble to use FMOD's bars as a "timer" for the animator component?

**URL:** <https://qa.fmod.com/t/is-it-possble-to-use-fmods-bars-as-a-timer-for-the-animator-component/15665>\
**Category:** Unity\
**Created:** [April 19, 2020, 5:16am UTC](https://qa.fmod.com/t/is-it-possble-to-use-fmods-bars-as-a-timer-for-the-animator-component/15665 "2020-04-19T05:16:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Creiz](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@Creiz](https://qa.fmod.com/u/Creiz)\
**Post date:** [April 19, 2020, 5:16am UTC](https://qa.fmod.com/t/is-it-possble-to-use-fmods-bars-as-a-timer-for-the-animator-component/15665/1 "2020-04-19T05:16:46Z")

</div>

So what I want to do is have unity Timescale from 0 to 1 in a bar.

Ah, it’s a bit hard to explain just like that. Alright. So I have this combat system which mostly works, and at the end of it, when the player kills the enemy, there’s a “victory” cutscene, think like the old jrpgs.

When the player lands the final hit, I set Unity’s timescale to go to 0. So everything is paused right now.

What I want to do is have unity detect the exact moment in the Music it’s at, then lerp back to 1 over the rest of the current bar and go to the “Outro” marker when it’s done.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [April 27, 2020, 10:46pm UTC](https://qa.fmod.com/t/is-it-possble-to-use-fmods-bars-as-a-timer-for-the-animator-component/15665/2 "2020-04-27T22:46:34Z")

</div>

I’m not sure exactly how you would do something like this but it sounds like you want to use [`FMOD_STUDIO_EVENT_CALLBACK_TIMELINE_BEAT`](https://fmod.com/resources/documentation-api?version=2.1&page=studio-api-eventinstance.html#fmod_studio_event_callback_timeline_beat).
