# Help with Parameters

**URL:** https://qa.fmod.com/t/help-with-parameters/15721
**Category:** FMOD Studio
**Created:** [May 4, 2020, 8:40am UTC](https://qa.fmod.com/t/help-with-parameters/15721 "2020-05-04T08:40:30Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![niu](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/niu/32/144_2.png) [@niu](https://qa.fmod.com/u/niu)
#### Post date: [May 7, 2020, 1:09pm UTC](https://qa.fmod.com/t/help-with-parameters/15721/2 "2020-05-07T13:09:40Z")

</div>

I am no programmer, but I’ll give it a try.  
Basically what you need to do is to get the height value of your player from the Y position of the Transform component on your Player GameObject. Then you should pass that value to the “Height” parameter in your FMOD event.  
Here’s how I would do it:

```
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class YourScript : MonoBehaviour
{
    public Transform myTransform;

    void Start()
    {
        myTransform = GetComponent<Transform>();
    }

    void FixedUpdate()
    {
        //you can probably do this in Update() as well
        float playerHeight = myTransform.position.y;

        //check the value on the console
        Debug.Log(playerHeight);

        //apply the value to FMOD parameter
        var emitter = GetComponent<FMODUnity.StudioEventEmitter>();
        emitter.SetParameter("Height", playerHeight);
    }
}

```

Maybe there’s a more efficient way to do it, but it should work.

---

_[View the full topic](https://qa.fmod.com/t/help-with-parameters/15721)._
