How to play a sound when the player runs out of ammo?

i already applied blueprint where the player can’t shoot when the ammo reaches 0 , but i want to play a sound when the ammo reaches 0 , and i want the sound to be played whenever the player clicks on the left mouse button

Well, in your code where you are decrementing the ammo after you fire you could do something like this.

Thanks alot , it worked !

i had to add sequence node because i had another branch node (for stopping the shooting when ammo reaches 0 )