How to toggle a sound on and off by clicking on a specific object

Hi!
I’m working on a project using the First Person Adventure Game Template from the UE4 store.
Currently I’m having trouble switching the sound on and off on my radio by clicking on it. I’ve tried working on the blueprint but so far with no results… Right now, the sound starts playing each time I click. I want it only to play and stop when I click on the radio.
Thank you very much!

How about like this:

Be careful with that LeftMouseButton event, it will work anywhere in the game ( you don’t need to be next to the radio ).

Thank you! Unfortunatelly I can’t find the “ActorOnClicked” node.
I only found Event ActorOnClicked and that doesn’t work.

The event you are looking for is actually a custom event he created for you as an example. You can create those by searching for the “custom event” node. Then you can call it anywhere within your blueprint. If you need to call it from other blueprints, you would need to “cast to” that blueprint or utilize interfaces.

You say you’ve got the sound starting when you click. Whatever event you’re using to start the sound, that’s the one to use, just connect it like I’ve shown you above :slight_smile:

You’re welcome ( can you mark the answer as correct :wink: )

Thank you very much!