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"

Sound moving with mesh

Hey!

So i'm making an airport map, and i want an airplane to flyby. So i created a blueprint class with an airplane and a projectile movement component. Now i want to add a sound to the plane which moves with the plane, so when the plane flies by you hear the sound and when it's far away you don't, and you also hear it approaching etc. I tried a few things with changing the location of the sound, but you hear it everywhere in the map at the same volume all the time. Can anybody help me? Thanks!

alt text

Product Version: UE 4.18
Tags:
sound.png (305.5 kB)
more ▼

asked Jan 16 '18 at 08:38 PM in Blueprint Scripting

avatar image

killinglynx
3 2 3 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

I'm not sure why the 3D part isn't working with that node. I use PlaySoundAtLocation for my weapon firing effects and it works as you would expect.

I can say that for an actor that produces sound continuously, you probably want to use the SpawnSoundAttached node so the sound moves with the actor.

more ▼

answered Jan 16 '18 at 08:53 PM

avatar image

Jin_VE
4.4k 32 79 42

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Add an audio component to your plane. Convert your sound to a sound cue. Take a look at the images.

alt text

alt text

alt text

Inside sound cue:

alt text

alt text

It might require some tweaking but this should get you going

sn1.png (16.5 kB)
sn2.png (29.0 kB)
sn3.png (40.7 kB)
cue1.png (27.1 kB)
cue2.png (47.8 kB)
more ▼

answered Jan 16 '18 at 09:16 PM

avatar image

SouthBot
51 1 5

avatar image killinglynx Jan 17 '18 at 07:08 AM

Hey, so thanks for your answer. I tried this but couldnt find the "moving sound" component?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hi I just called my one "MovingSound" :) As I said at the start of my post it is an Audio Component. You will find it in the add component list.

more ▼

answered Jan 17 '18 at 08:43 AM

avatar image

SouthBot
51 1 5

avatar image killinglynx Jan 18 '18 at 06:17 AM

I'ma try this out tonight. Thanks already!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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