i want to add cooldown audio ( its not time yet, not ready) when roll is cooldown. where can i add this? i have sound cue but i dont know where to add it.

Would this work?

1 Like

thank you. it works brother. how to not spam it?

Well there’s a bunch of ways; for example, you could track a cooldown for the sound the same as you’re currently doing for the roll action (with two new variables) and only play the sound if its cooldown is over.

Hard to say what the best way would be, you can start with this and adjust it later if you end up tracking too many variables and it becomes hard to manage.


i solved like this

1 Like

but when game starts its sounds once.

Your AudioComponent probably has this (see image) set by default:
image
The component is automatically activated on starts, and it plays the sound on activation.

You can either disable this and activate it manually before playing the sound, or call Stop in its BeginPlay (and leave the autoactivation enabled) to prevent the initial sound from playing. Not sure if there’s a third (better) option.

1 Like

thank you sir.

1 Like