# Built-in parameters and max distance

**URL:** <https://qa.fmod.com/t/built-in-parameters-and-max-distance/18175>\
**Category:** FMOD Engine\
**Created:** [January 4, 2022, 6:06pm UTC](https://qa.fmod.com/t/built-in-parameters-and-max-distance/18175 "2022-01-04T18:06:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tb-ktracing](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@tb-ktracing](https://qa.fmod.com/u/tb-ktracing)\
**Post date:** [January 4, 2022, 6:06pm UTC](https://qa.fmod.com/t/built-in-parameters-and-max-distance/18175/1 "2022-01-04T18:06:18Z")

</div>

Hello,  
I have 2 subjects on fmod api :  
I work with our own engine and one of our debug tool aims to display all events parameters values in (using fmod 2.01.07 api). I see that buit-in parameters are always equal to 0 when they are read within the API (distance, cone angle etc…) although they have the right values in profiler. I cannot undestand why.

Other subject (fmod 2.02):  
Now that max distance is available on event level, how can we set max distance in code dynamicaly? I cannot see setMaxDistance function in tha API.

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [January 7, 2022, 3:50am UTC](https://qa.fmod.com/t/built-in-parameters-and-max-distance/18175/2 "2022-01-07T03:50:44Z")

</div>

2.01.07:  
Just to clarify, are you finding that `Channel::get3DConeSettings`, `Sound::getMinMaxDistance` etc are always returning 0? This shouldn’t be the case.

2.02.xx:  
Min and Max distance values on can be overwritten using [`EventInstance::setProperty`](https://fmod.com/resources/documentation-api?version=2.02&page=studio-api-eventinstance.html#studio_eventinstance_setproperty) passing in [`FMOD_STUDIO_EVENT_PROPERTY_MINIMUM_DISTANCE` or `FMOD_STUDIO_EVENT_PROPERTY_MAXIMUM_DISTANCE`](https://fmod.com/resources/documentation-api?version=2.02&page=studio-api-eventinstance.html#fmod_studio_event_property).
