Panning Audio

Back with more audio stuff. I know MV has an option for panning, but I really don't want to have to convert my entire game to MV. What I'm trying to do is change where the SE comes from depending on the direction in which you hit something. But I haven't found a single script to change the panning of the audio.
Moved to: RGSS3 Script Requests
Hello!

Do you want the volume to go down if the object is further away from the player and up if it gets closer?


I'm sorry, I think I get it now, it's like the ambient sound, you have the feeling of going from right to left and vice versa.
This effect is the one in which the sound is low in one speaker and high in the other and it changes progressively.
I don't know if it's possible to do it on the RMVXA, but I'll do some research.

Original thread: https://forums.rpgmakerweb.com/threads/panning-audio.141122/