# FMOD Parameter to Unity

**URL:** <https://qa.fmod.com/t/fmod-parameter-to-unity/12907>\
**Category:** Unity\
**Created:** [January 4, 2017, 4:36pm UTC](https://qa.fmod.com/t/fmod-parameter-to-unity/12907 "2017-01-04T16:36:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mozq8](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@mozq8](https://qa.fmod.com/u/mozq8)\
**Post date:** [January 4, 2017, 4:36pm UTC](https://qa.fmod.com/t/fmod-parameter-to-unity/12907/1 "2017-01-04T16:36:35Z")

</div>

Hello, i can’t solve this problem, i’ve made FMOD parameter “health” (range 0-100), how can i link it to Player’s Health in Unity, so when Player’s health drops below 30% it will trigger FMOD parameter “Health” with simple low filter cutoff.  
I mean logically there is a way to create dialog between FMOD Health(0-100) parameter and Player Health in Unity(0-100), but how?

---

<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:** [January 4, 2017, 10:41pm UTC](https://qa.fmod.com/t/fmod-parameter-to-unity/12907/2 "2017-01-04T22:41:37Z")

</div>

An example could be as basic as this:

```
 [FMODUnity.EventRef] public string eventRef;
 FMOD.Studio.EventInstance instance;
 FMOD.Studio.ParameterInstance health;
 
 void Start ()
 {
      instance = FMODUnity.RuntimeManager.CreateInstance(eventRef);
      instance.getParameter("health", out health);
 }
 
 void Update ()
 {
       health.setValue(playerHealth);	
 }
```
