How can I change the sound to be played in a metasound depending on an int parameter?

I’m making the sounds to make footsteps and I have an int32 that I’m changing depending on the physical material that my character is stepping on but I don’t know how I can pass it to the metasound so that it plays the corresponding sound.

For footsteps by physical material you want an Int Input in the metasound driving a Switch or Select into the Wave Player, then from BP do Set Int Parameter with the material index whenever the foot hits. Same pattern works for Wave swapping if you prefer to push the wave asset directly via Set Wave Parameter.

I put both paths in one BP API so you can use whichever fits: Expose MetaSound Parameters To Blueprint — SetInt for the switch approach, SetWave if you want to swap the asset from BP. Disclosure: I made it.