x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

Product Version: UE 4.10
Tags:
more ▼

asked Apr 06 '16 at 01:44 PM in Using UE4

avatar image

Reece120
1 1 2

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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.

alt text

screenshot_56.png (226.7 kB)
more ▼

answered Apr 06 '16 at 01:55 PM

avatar image

Panda Studios
581 17 22 42

avatar image Reece120 Apr 06 '16 at 03:03 PM

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 hahaalt text

screenshot_2.jpg (15.6 kB)
avatar image Panda Studios Apr 06 '16 at 03:07 PM

Hey that is Equal (Class) alt text

avatar image Reece120 Apr 06 '16 at 03:26 PM

I have it completed, but it doesn't seem to workalt text

screenshot_3.jpg (162.7 kB)
avatar image Panda Studios Apr 06 '16 at 03:29 PM

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

avatar image Panda Studios Apr 06 '16 at 03:34 PM

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

avatar image Reece120 Apr 06 '16 at 03:44 PM

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

avatar image Panda Studios Apr 06 '16 at 03:47 PM

No problem! Glad i could help you :)

avatar image Minus_Kelvin STAFF Apr 06 '16 at 05:08 PM

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

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question