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 Travel Time (Speed of sound)


I'm trying to add a "speed of sound" function to my sound cues. Basicly at distances there should be a delay for sounds to reach the player.

Is there any node i can use or do i have to create my own function or something?

Thanks in advance for any help you are able to provide!

Product Version: UE 4.10
more ▼

asked May 23 '16 at 07:04 PM in Blueprint Scripting

avatar image

266 4 5 6

avatar image RimmyD May 23 '16 at 07:47 PM

Interesting question. There is a node that uses distance for crossfade so making a new one to delay by distance may not be too difficult.

I honestly have no solid understanding of the sound system inner workings but i would be on the lookout for how/when sound nodes are run to verify it gets accurate location data on single and multiplayer.

avatar image MazyModz Jun 22 '16 at 01:02 AM

I've been thinking of using the delay node where the delay time is determined by this formula:

 -------------------- = Delay
 Speed of sound (m/s)

However then comes the question how I replicate diffrent sounds to all clients in a multiplayer game.

Is it even possible to replicate sound? If so then how would I as said, replicate diffrent sounds to diffrent players?

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

1 answer: sort voted first

Solved it.

I made a server function that called a multicast function. The multicast function has a timer in it to act as delay. The delay is calculated by dividing the distance by the speed of sound (340). The distance is calculated by getting the distance between the local player (the player that the multicast function is being called on) and the location of the sound.

And when the timer is done i play a sound at location.


more ▼

answered Aug 12 '16 at 03:59 AM

avatar image

266 4 5 6

(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