With UI in place, the next step is audio: weapon fire, footsteps, ambient, and music so your FPS feels and sounds complete. This lesson covers how to add and trigger sounds in Unreal Engine 5, use attenuation so audio fades with distance, and hook up simple music and ambience.
You will finish with weapon fire and footstep sounds, optional ambient zones, and a basic music trigger or level track.
Why audio comes next
Visual feedback (HUD, hit markers) is already there; sound reinforces actions (shooting, walking, taking damage) and sets mood (music, ambience). Players expect guns to make noise and footsteps to match movement. Start with a few key sounds; you can add more layers and polish later.
We will use Sound Waves (or Sound Cues in UE5 where available), Audio Components, and attenuation so 3D sounds get quieter with distance. Music can be 2D (no attenuation) or triggered in zones.
Step 1: Weapon fire sound
-
Import or use a weapon sound
- Import a WAV or MP3 (e.g. gunshot, rifle fire) into the Content Browser. Unreal will create a Sound Wave asset. Alternatively use a sound from the starter content or Marketplace.
- Optionally create a Sound Cue (if your project uses them) to add variation (random pitch, multiple samples) so shots do not sound identical every time.
-
Play the sound when firing
- In your weapon or character Blueprint, where you already handle fire input (line trace, etc.), add Play Sound at Location (or Play Sound 2D for a non-positional shot). Use the weapon's muzzle or character location as the play location so the sound is spatial.
- Pass your Sound Wave (or Sound Cue) into the node. If the sound is on the weapon mesh, you can use an Audio Component attached to the weapon and call Play on it when firing. That keeps the sound at the gun position.
-
Attenuation (optional)
- So the gunshot gets quieter with distance, use Override Attenuation on Play Sound at Location, or assign an Attenuation asset. Set a reasonable falloff (e.g. 3000–5000 units) so distant shots are quiet but still audible.
- If you use an Audio Component on the weapon, set its Attenuation Settings in the details panel or via an Attenuation asset.
Pro tip: Use a short, punchy sample for the gunshot and avoid long reverb tails if you will have many shots; otherwise they stack and sound muddy.
Step 2: Footsteps
-
Footstep sound asset
- Import one or more footstep WAVs (e.g. concrete, metal). You can use a Sound Cue to randomly choose from a few variations so footsteps do not loop obviously.
-
Trigger on movement
- In the Character Blueprint, use a timer or tick logic: when the character is moving on the ground (velocity length above a threshold, and Is Moving on Ground or similar), play a footstep sound every N seconds (e.g. 0.4–0.5 s for a walk). Reset the timer when the character stops.
- Play the sound at the character's location (or at the foot bone if you have one) with Play Sound at Location or an Audio Component on the character. Use attenuation so footsteps are only loud when the player is nearby (important for multiplayer or AI).
-
Surface-based footsteps (optional)
- For different materials (concrete, grass, metal), use a Line Trace downward from the character to get the physical material or a tag, then choose the appropriate Sound Wave or Sound Cue per surface. Start with one footstep sound and add surfaces later if needed.
Step 3: Ambient and zone sounds
-
Ambient sound actor
- Place an Ambient Sound actor (or Audio Component on an empty actor) in the level. Assign a looping ambient track (wind, room tone, machinery). Set Attenuation so the sound is audible only in a radius (e.g. 2000–4000 units).
- Multiple ambient actors in different areas create variety as the player moves (e.g. indoor vs outdoor).
-
Trigger zones for music or one-shots
- Use a Trigger Volume (Box Collision) that overlaps the player. On Actor Begin Overlap, play a Sound Base (music or sting) with Play Sound 2D so it is not positional, or use an Audio Component. On Actor End Overlap you can fade out or stop the music if you want zone-based tracks.
- For simple level music, one Ambient Sound or a single Play Sound 2D in BeginPlay on the level Blueprint is enough.
Step 4: Hit and damage feedback (optional)
- When the player or an enemy takes damage, play a short hit or pain sound at the damaged actor's location. Use Play Sound at Location in the damage handler (the same place you apply damage or update health).
- When the player gets a kill or the enemy dies, you can play a kill confirm or death sound. Keep these short so they do not overwhelm the mix.
Step 5: Mini challenge – audio checklist
Before moving on, verify:
- [ ] Weapon fire plays when the player shoots and is audible at a reasonable distance (attenuation working if used).
- [ ] Footsteps play when the character walks and stop when they stop.
- [ ] At least one ambient or music element is in the level (background or zone).
- [ ] Optionally: hit/damage or death sounds when the player or enemy takes damage or dies.
If a sound does not play, check that the Sound Wave is valid, the play node is being called (e.g. not blocked by a branch), and that volume is not muted in the project or editor. If sound is too loud or too quiet, adjust the Volume on the play node or in the Sound Wave asset.
Troubleshooting
No sound at all: Ensure the Sound Wave is imported correctly and assigned to the play node. Check editor and system volume. In packaged builds, ensure audio files are included in the build.
Sound plays every frame: You are likely calling Play in Tick without a cooldown or flag. Use a timer for footsteps and only play weapon sound once per fire event.
Sound too loud or clips: Reduce the Volume multiplier on Play Sound or in the Sound Wave. Normalize your source files so they are not peaking.
No attenuation: Assign an Attenuation asset to the Play Sound at Location node (Override Attenuation) or to the Audio Component. Without it, 3D sounds may use a default that does not fall off much.
What is next
With weapon, footsteps, and ambient (or music) in place, the FPS has basic audio. In Lesson 11: Visual Effects & Particle Systems you will add muzzle flash, impact effects, and simple VFX so combat looks as good as it sounds.
For more on Unreal audio, see Unreal Engine 5 Audio and our Unreal Engine Guide. Found this useful? Bookmark the course and try adding reload sounds or different footstep surfaces. When you are ready, head to Lesson 11 for VFX.