# Per game object control?

**URL:** https://qa.fmod.com/t/per-game-object-control/18346
**Category:** FMOD Studio
**Created:** [February 11, 2022, 8:06am UTC](https://qa.fmod.com/t/per-game-object-control/18346 "2022-02-11T08:06:04Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![deHaan](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dehaan/32/68_2.png) [@deHaan](https://qa.fmod.com/u/deHaan)
#### Post date: [February 11, 2022, 8:06am UTC](https://qa.fmod.com/t/per-game-object-control/18346/1 "2022-02-11T08:06:04Z")

</div>

Is there any way I can do stuff per game object in FMOD? E.g. if I play a land sound, I’d like to duck the footstep sounds for that character briefly. Or if an any enemy robot plays a pain sound, I’d like to reduce the pitch of the robot humming loop on only that robot for 1 second.

I do this stuff all the time in with events in Wwise, but not sure if it is possible with FMOD?

---

<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: [February 11, 2022, 8:57am UTC](https://qa.fmod.com/t/per-game-object-control/18346/2 "2022-02-11T08:57:56Z")

</div>

Aren’t snapshots doing what you’re looking for?

---

<div class="post-metadata">

### Author: ![deHaan](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dehaan/32/68_2.png) [@deHaan](https://qa.fmod.com/u/deHaan)
#### Post date: [February 11, 2022, 9:29am UTC](https://qa.fmod.com/t/per-game-object-control/18346/3 "2022-02-11T09:29:04Z")

</div>

Wouldn’t a snapshot duck the footstep sounds for all characters when landing? I want to only do it for the specific character who is landing 🙂

---

<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: [February 11, 2022, 11:29am UTC](https://qa.fmod.com/t/per-game-object-control/18346/4 "2022-02-11T11:29:15Z")

</div>

That’s more tricky indeed.  
You could use a “private” parameter with a velocity (for the release) and a seek speed (for the attack), and automate what you want within the event with it. You then trigger the effect by using a command Instrument, setting the value of the parameter. The parameter would recover its original value with the velocity.

---

<div class="post-metadata">

### Author: ![deHaan](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dehaan/32/68_2.png) [@deHaan](https://qa.fmod.com/u/deHaan)
#### Post date: [February 11, 2022, 11:55am UTC](https://qa.fmod.com/t/per-game-object-control/18346/5 "2022-02-11T11:55:33Z")

</div>

Thank you. Not sure I understand completely. Wouldn’t the command instrument still set the parameter for for all footstep instances, ducking them all?

---

<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: [February 11, 2022, 12:50pm UTC](https://qa.fmod.com/t/per-game-object-control/18346/6 "2022-02-11T12:50:19Z")

</div>

You’re right, in fact I was describing a possible implementation if everything is controlled in one unique event. FMOD event instances are pretty agnostic to what’s happening in other event instances, so I’m afraid to achieve what you want, you’ll need to either have one unique event controlling everything, or make all the connections in the game code…  
Wwise allows to connect things together more easily? That’s interesting.

---

<div class="post-metadata">

### Author: ![deHaan](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dehaan/32/68_2.png) [@deHaan](https://qa.fmod.com/u/deHaan)
#### Post date: [February 11, 2022, 12:57pm UTC](https://qa.fmod.com/t/per-game-object-control/18346/7 "2022-02-11T12:57:57Z")

</div>

Oh that is a shame.

Yeah in Wwise, you can do stuff like setting this where you set parameters, volume etc. for different sounds playing from the same game object (you can chose “Game Object” or “Global” as a scope). I was really excited to see command instruments coming to FMOD because I thought they could do similar things, but realizing they only work globally was a bummer.

 ![billede](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/b/ba60c75ea630b19b7e8deba9ce146d31b4918f1d.png)

---

<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: [February 11, 2022, 1:59pm UTC](https://qa.fmod.com/t/per-game-object-control/18346/8 "2022-02-11T13:59:28Z")

</div>

What would be the “game object” in your case? A character, I guess?

---

<div class="post-metadata">

### Author: ![deHaan](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dehaan/32/68_2.png) [@deHaan](https://qa.fmod.com/u/deHaan)
#### Post date: [February 11, 2022, 3:06pm UTC](https://qa.fmod.com/t/per-game-object-control/18346/9 "2022-02-11T15:06:37Z")

</div>

Yeah exactly. So as long as I am playing all my sounds from the same object on that character, I can control parameters etc. across events

---

<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: [February 12, 2022, 5:48pm UTC](https://qa.fmod.com/t/per-game-object-control/18346/10 "2022-02-12T17:48:49Z")

</div>

In FMOD there is no concept of “game objects” or distinction of event scopes (game object/global). Trying to replicate your behaviour 1:1 as in Wwise will not work. I don’t think it’s possible to do what you want directly from Studio.

> E.g. if I play a land sound, I’d like to duck the footstep sounds for that character briefly.

The simplest solution is to use a local parameter in your “Footstep” event and set it at runtime to a value for the specific EventInstance when you play the “Land” sound. (Do your ducking modulation with the parameter).

---

<div class="post-metadata">

### Author: ![deHaan](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dehaan/32/68_2.png) [@deHaan](https://qa.fmod.com/u/deHaan)
#### Post date: [February 12, 2022, 9:26pm UTC](https://qa.fmod.com/t/per-game-object-control/18346/11 "2022-02-12T21:26:48Z")

</div>

Okay I see, thank you. I guess I just gotta try thinking in a different way for FMOD 🙂

So I guess it would actually make sense to create a big master event for something like a character, and then use parameters to play sounds. That way I guess I’d be able to do things like ducking, stopping events, incrementing parameters for only that specific character 🤔 I wonder if there are any downsides to this approach…

---

<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: [February 12, 2022, 9:38pm UTC](https://qa.fmod.com/t/per-game-object-control/18346/12 "2022-02-12T21:38:07Z")

</div>

Yes, that should work.

---

<div class="post-metadata">

### Author: ![toddhelsley](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/toddhelsley/32/2550_2.png) [@toddhelsley](https://qa.fmod.com/u/toddhelsley)
#### Post date: [February 15, 2022, 12:29am UTC](https://qa.fmod.com/t/per-game-object-control/18346/13 "2022-02-15T00:29:24Z")

</div>

You could also do this in the mixer using side chains depending on how granular your mixer structure is.

---

<div class="post-metadata">

### Author: ![deHaan](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dehaan/32/68_2.png) [@deHaan](https://qa.fmod.com/u/deHaan)
#### Post date: [February 15, 2022, 10:28am UTC](https://qa.fmod.com/t/per-game-object-control/18346/14 "2022-02-15T10:28:43Z")

</div>

Wouldn’t all the instances of a character go through the same mixer channel? So if I did the ducking there it would always apply to all instances, and not just the one I want to duck for?

---

<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: [February 15, 2022, 11:51am UTC](https://qa.fmod.com/t/per-game-object-control/18346/15 "2022-02-15T11:51:15Z")

</div>

Indeed, it wouldn’t work. But you still can use this sidechain idea on your individual event tracks, for instance for ducking the footsteps while landing.

---

<div class="post-metadata">

### Author: ![toddhelsley](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/toddhelsley/32/2550_2.png) [@toddhelsley](https://qa.fmod.com/u/toddhelsley)
#### Post date: [February 17, 2022, 5:10am UTC](https://qa.fmod.com/t/per-game-object-control/18346/16 "2022-02-17T05:10:52Z")

</div>

Ah I was thinking you were doing this for the “player” and not something with multiple instances.

Rereading the thread I see what you mean. My bad!

---

<div class="post-metadata">

### Author: ![Damion1](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/damion1/32/2716_2.png) [@Damion1](https://qa.fmod.com/u/Damion1)
#### Post date: [February 18, 2022, 10:42am UTC](https://qa.fmod.com/t/per-game-object-control/18346/17 "2022-02-18T10:42:32Z")

</div>

Hey there - spotted this and couldn’t help but chime in…

I have done this sort of thing in the past, and whilst it will give you the kind of flexibility you are after (ducking etc at the individual instance level, in all the wonderful fancy ways that FMOD allows), I don’t necessarily recommend it unless you absolutely have to.

I promise that you will get better results if you do what @alexzzen hints at and manage the individual sounds through some ‘robot audio handler’ that you write yourself. Big complex FMOD Events _can be_ very powerful, but you can also get yourself into all sorts of tangles, _and_ there are some limitations.

In particular, you will find (but please test this yourself) that triggering an instrument clip via a parameter change will have audibly more latency than creating and starting a dedicated event for that sound! And latency is really something you want to avoid, if at all possible.

Also, let’s suppose you end up with a **step** and a **pain** sound for your robot. Later, you decide you want the **pain** to have voice stealing pririty over the **step** (seems pretty likely). You won’t be able to utilize the event level stealing behaviour because they are in the same event!

I _do_ recommend complex master events for certain things, like smooth loop layers interacting with each other, and of course music and ambience beds and so on, but my professional opinion is that you end up with something much more robust by using a careful _combination_ of ‘complex multi-sound events’ and ‘dedicated single purpose events’, all managed by a ‘master’ script (replacing the Wwise ‘object’ that we lack)

My general rule (which I don’t always follow but inevitably regret) is this: if something can be easily and painlessly extrapolated out to the code level, without significantly harming your ability to tweak things at runtime with Live Update etc, then you should absolutely consider doing it.

But I’m just one soundie in a sea of soundies, you do you!

---

<div class="post-metadata">

### Author: ![deHaan](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dehaan/32/68_2.png) [@deHaan](https://qa.fmod.com/u/deHaan)
#### Post date: [February 24, 2022, 1:00pm UTC](https://qa.fmod.com/t/per-game-object-control/18346/18 "2022-02-24T13:00:11Z")

</div>

Thank you for the input @Damion1 - very interesting!

Today I did a test, and it did not seem like there is any latency playing a sound with a parameter inside a continuous looping event vs. playing a new event. Do you remember if latency only started occurring when the event grew bigger?

About the priority you mention. Could a workaround for that be using event instruments, so I set the priority on the event instrument?

For the projects I am currently working on, I am not allowed to write any code myself, so I have to ask a programmer every time I want to change something, so that makes this option even more appealing. But of course, I don’t want to do it if it is too risky. I guess I’ve just been spoiled with the game object access Wwise has 😁

Here’s a video of my latency test. Is it similar to how you have set it up?

[![](https://img.youtube.com/vi/tXECUwi0AE4/maxresdefault.jpg "FMOD GameObject control workaround latency test") ](https://www.youtube.com/watch?v=tXECUwi0AE4)
