# Implementing "Ammo getting low" SFX

**URL:** <https://forums.unrealengine.com/t/implementing-ammo-getting-low-sfx/489800>\
**Category:** Audio\
**Tags:** unreal-engine, implementation, question\
**Created:** [October 12, 2021, 3:30pm UTC](https://forums.unrealengine.com/t/implementing-ammo-getting-low-sfx/489800 "2021-10-12T15:30:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_69c7ff391](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_69c7ff391](https://forums.unrealengine.com/u/anonymous_user_69c7ff391)\
**Post date:** [October 12, 2021, 3:30pm UTC](https://forums.unrealengine.com/t/implementing-ammo-getting-low-sfx/489800/1 "2021-10-12T15:30:08Z")

</div>

Heyo ppl! i am trying to figure out how can i implement the sfx for ammo getting low.

Example video here: [QUAKE Champions : All Weapon Skins & Sound in the Game // 퀘이크 챔피언즈 모든 무기 스킨과 사운드 - YouTube](https://youtu.be/GQDJ725Br2I?t=677) should start to play from the correct timestamp, if not then it’s at 11:20.

I have one float variable for ammo that i can use and i have tried pretty much everything and i am now out of ideas  
(i have tried: timeline, crossfade by param, booleans if ammo is lower than x)

So far the main problem is to get the “ammo getting low sfx” to start again from the point it stopped when i start shooting again.

Hope someone has experience with similar problem!

Good day!

---

<div class="post-metadata">

**Author:** ![LordStuff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LordStuff](https://forums.unrealengine.com/u/LordStuff)\
**Post date:** [October 12, 2021, 3:59pm UTC](https://forums.unrealengine.com/t/implementing-ammo-getting-low-sfx/489800/2 "2021-10-12T15:59:15Z")

</div>

So you can already play the effect once but cannot repeat it? I think some screenshots / further explanation of your blueprints might help.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 12, 2021, 4:08pm UTC](https://forums.unrealengine.com/t/implementing-ammo-getting-low-sfx/489800/3 "2021-10-12T16:08:36Z")

</div>

Pause and Unpause the audio component.

 ![350249-screenshot-3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/9/de9c93d1eca993f8238ceb86fa65889d25c029ae.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 12, 2021, 4:15pm UTC](https://forums.unrealengine.com/t/implementing-ammo-getting-low-sfx/489800/4 "2021-10-12T16:15:46Z")

</div>

- ensure the comp is not active (bottom of the pic)
- when your drop below ammo threshold → activate it → play from start (or see last point)
- pause when the player is firing
- unpause when we stop firing & ammo is still below threshold
- when ammo is collected & no longer under threshold → deactivate the component
- when ammo is collected but _still_ under threshold (tiny ammo pack mayhap?), recalculate the time and play from there:

![350250-screenshot-4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/3/6038b970f765a0b8f7bf69b5272a2cba79ae8155.png)

You know the ammo limits and the length of the sound cue.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_69c7ff391](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_69c7ff391](https://forums.unrealengine.com/u/anonymous_user_69c7ff391)\
**Post date:** [October 13, 2021, 11:26am UTC](https://forums.unrealengine.com/t/implementing-ammo-getting-low-sfx/489800/5 "2021-10-13T11:26:02Z")

</div>

This is how it is implemented right now, it somewhat crossfades between the 3 sfx’s, still needs tweaking to make it seamless but i see that people have posted something about pause node, i should try it out and see what i can do, i hope this solves this.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_69c7ff391](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_69c7ff391](https://forums.unrealengine.com/u/anonymous_user_69c7ff391)\
**Post date:** [October 13, 2021, 11:28am UTC](https://forums.unrealengine.com/t/implementing-ammo-getting-low-sfx/489800/6 "2021-10-13T11:28:36Z")

</div>

here

 ![350294-set-float-parameter.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/e/c1e8071e5379159db93e13d621ace079ea0b4ea4.jpeg)

][2]

 ![350295-crossfade-by-param.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/a/e7af6bbdfeaf5b6b230107541d5eda5100a3594c.jpeg)

 ![350296-stop-beam.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/3/22377c2371070dae0075eee30143ff86b20241cb.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_69c7ff391](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_69c7ff391](https://forums.unrealengine.com/u/anonymous_user_69c7ff391)\
**Post date:** [October 13, 2021, 11:55am UTC](https://forums.unrealengine.com/t/implementing-ammo-getting-low-sfx/489800/7 "2021-10-13T11:55:28Z")

</div>

Yes it fixes this!!  
I replaced the “stop” node with “pause set to true” and added “pause set to untrue” in the end of “event play local FX”

Thank you!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_69c7ff391](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_69c7ff391](https://forums.unrealengine.com/u/anonymous_user_69c7ff391)\
**Post date:** [October 14, 2021, 9:49pm UTC](https://forums.unrealengine.com/t/implementing-ammo-getting-low-sfx/489800/8 "2021-10-14T21:49:35Z")

</div>

■■■■, i left the office for the day. I will share screens of BPs tomorrow!

---

<div class="post-metadata">

**Author:** ![LordStuff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LordStuff](https://forums.unrealengine.com/u/LordStuff)\
**Post date:** [October 15, 2021, 8:50am UTC](https://forums.unrealengine.com/t/implementing-ammo-getting-low-sfx/489800/9 "2021-10-15T08:50:16Z")

</div>

Well I see Everynone already took care of the topic so you don’t need to send any if you don’t need further help 😉
