Interactive Audio - Trigger

I have some sandbag static meshes. I want it so, when my character walks up to them and presses “E” It will play some audio.

Would it be possible if someone could explain to me how I can do this using blueprint please, any help would be greatly appreciated.

Regards

Hey Reece!

You can do this with tracing from the camera to the forward vector * 1500 units and getting the actor’s class and checking if it’s the actual class you want to cast to and then play the sound.

I’ve created a mockup preview of what you’d want to have to do this.

With this you’d want to create an actor(blueprint) with those sandbag meshes.

Hi,

Thanks for the fast reply,

I’m new to using blueprint should you tell me what this actor is called please. I can’t find it on blueprint haha

85567-screenshot_2.jpg

Hey that is Equal (Class)

85568-screenshot_58.png

I have it completed, but it doesn’t seem to work

You might have complex collision on the meshes. Try ticking “Trace complex” on the trace.

Oh i see it now, you have vector * vector instead of vector + vector.

Got it working! yay! thanks some much for all the help!

No problem! Glad i could help you :slight_smile:

This is what I like to see :slight_smile: Thanks Panda!