# Can unity Check if certain fmod event is playing?

**URL:** https://qa.fmod.com/t/can-unity-check-if-certain-fmod-event-is-playing/15342
**Category:** Unity
**Created:** [December 25, 2019, 6:32pm UTC](https://qa.fmod.com/t/can-unity-check-if-certain-fmod-event-is-playing/15342 "2019-12-25T18:32:01Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![alexzzen](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alexzzen/32/6825_2.png) [@alexzzen](https://qa.fmod.com/u/alexzzen)
#### Post date: [December 27, 2019, 5:31pm UTC](https://qa.fmod.com/t/can-unity-check-if-certain-fmod-event-is-playing/15342/7 "2019-12-27T17:31:23Z")

</div>

> how should i reference the specific Jetpack event doing so in the script  
> with no emitter ?

How are you actually playing your jetpack event? If by creating and playing an event instance in a script, then you can use the code snippet posted in my first answer in the same script.

> where should i put the “isPlaying” method script so i could call it anywhere on every event instance ?

There are different ways to go about this, you could make the method static so you can access it everywhere:

```
public class FmodExtensions
{    
    public static bool IsPlaying(FMOD.Studio.EventInstance instance)
    {
        FMOD.Studio.PLAYBACK_STATE state;
        instance.getPlaybackState(out state);
        return state != FMOD.Studio.PLAYBACK_STATE.STOPPED;
    }
}

```

Then just call `FmodExtensions.IsPlaying(yourInstance)` from where you want.

---

_[View the full topic](https://qa.fmod.com/t/can-unity-check-if-certain-fmod-event-is-playing/15342)._
