# Is there a way to Trigger a parameter using a key for activation?

**URL:** https://qa.fmod.com/t/is-there-a-way-to-trigger-a-parameter-using-a-key-for-activation/15611
**Category:** Unity
**Created:** [April 3, 2020, 3:34pm UTC](https://qa.fmod.com/t/is-there-a-way-to-trigger-a-parameter-using-a-key-for-activation/15611 "2020-04-03T15:34:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![frankpleecemusic](https://avatars.discourse-cdn.com/v4/letter/f/848f3c/32.png) [@frankpleecemusic](https://qa.fmod.com/u/frankpleecemusic)
#### Post date: [April 3, 2020, 3:34pm UTC](https://qa.fmod.com/t/is-there-a-way-to-trigger-a-parameter-using-a-key-for-activation/15611/1 "2020-04-03T15:34:36Z")

</div>

Hi everyone!

I’m fairly new to fmod and unity and was wondering if anyone could help me out with some implementation problems I’m having. I have a sound assigned to a specific model with a high cut on it, now when this model is activated by pressing the “E” key it begins to emit particles, but what I want to do is when the particles are activated the filter deactivates so you can hear the sound fully, I’ve tried basically everything, but I can’t seem to get it working, I believe that it’s a parameter trigger that I need to use but there’s no specific key press trigger and the only one that seems to work is the “mouse over” trigger, any help would really be appreciated! 🙂

---

<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: [April 3, 2020, 4:56pm UTC](https://qa.fmod.com/t/is-there-a-way-to-trigger-a-parameter-using-a-key-for-activation/15611/2 "2020-04-03T16:56:34Z")

</div>

Easiest way is to set the parameter manually via code by calling [StudioEventEmitter::SetParameter](https://www.fmod.com/resources/documentation-unity?version=2.1&page=api-studioeventemitter.html#studioeventemitter_setparameter) or [Studio::EventInstance::setParameterByName](https://www.fmod.com/resources/documentation-api?version=2.1&page=studio-api-eventinstance.html#studio_eventinstance_setparameterbyname) (if local). Do that when you check for the “E” key being pressed. How are you playing your sound?

---

<div class="post-metadata">

### Author: ![frankpleecemusic](https://avatars.discourse-cdn.com/v4/letter/f/848f3c/32.png) [@frankpleecemusic](https://qa.fmod.com/u/frankpleecemusic)
#### Post date: [April 4, 2020, 8:18am UTC](https://qa.fmod.com/t/is-there-a-way-to-trigger-a-parameter-using-a-key-for-activation/15611/3 "2020-04-04T08:18:38Z")

</div>

Okay wicked, thanks for replying, I think I’ve gotten a bit ahead of myself in terms of coding as I don’t really know a lot about it, do you know any good places to start in terms of learning to code with FMOD and unity? I imagine I could just look up c# coding?

---

<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: [April 4, 2020, 10:25am UTC](https://qa.fmod.com/t/is-there-a-way-to-trigger-a-parameter-using-a-key-for-activation/15611/4 "2020-04-04T10:25:46Z")

</div>

[https://learn.unity.com/](https://learn.unity.com/) is a good place to start 🙂
