Easiest way is to use this:
Hello! I am a recent beginner when it comes to Unreal Engine and need some help. So I made my own First Person Character and I want him to have footsteps. I thought I could just keep playing the footsteps sounds until the key is released. I saw that you can do it with animation but I don’t have any set up and I just want to work with audio. Does anyone have a simple way in which I can just play the sound (preferable looped), then stop when released.
Also if anyone can tell me how to pan the sounds once I hear them, that would be great too!
and how do I use or what would I look up to know how to use the vfx? again, I’m a beginner
You just get that asset ( it’s free ), it comes with instructions. It does everything, change footsteps sounds on different ground, doesn’t do steps when jumping etc.
EDIT: You can do what you’re asking like this. Inside the player:
and PlaySound looks like this:
You can see it’s already a bit of a fiddle, and will get worse as you add requirements like different sounds for different surfaces. That’s why I recommended the asset