The easiest way is to use the 2D panner with an RTPC:
- Set the Positioning of the sound to 2D
- Enable the panner
- Under the RTPC tab, add the Positioning 2D/Pan Left-Right property
- Setup a straight curve from bottom-left to top-right
- In the game, set the associated game parameter