It gives me a weird same value always. I am playing the EventReference from EventEmitter and it does plays the EventReference but not updating the Distance parameter. Also the pitch shifter not works as the result.
For the EventReference settings:
I added the Spatialization without Distance Parameter and Pitch Shifter to change with Distance Parameter
Note: Hold Value During Playback is set to true in Distance Parameter already.
As the documentation says, it should update automatically with nearest listener.
Profiled the game from FMOD, the parameter is not showing up. Only log works somehow.
Ref: https://www.fmod.com/docs/2.02/studio/parameters-reference.html#distance
-Solution
This is because the order of effects you use. In mine as i said, i used Spatializer and Pich Shifter.
I think it renders from left to the right and it actually overrides the Distance parameter to something that u w’ont want.
So Spatializer was in left side and Pitch Shifter was in right side. I switched those and worked.
Works but log is still giving me same value in the log.
Well, the getParameterByName() overclocked by 3 values. string, initialvalue and final value. I am a dumb logging the initialvalue. It gives the right value but i dont know why this didnt work with left-sided spatializer then