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"

Homing In On Location Sound

Hey folks, I am trying to have my character pick up an object which then beeps more frequently as I approach a beacon and less frequently as I retreat from it.

My initial plan was to create a looping sound cue with a delay node that I could modify outside of the cue with distance information from my character and the beacon. As far as I know, it is not possible to modulate a sound cue's delay outside of the cue. I've messed around a bit with a few other ideas, and I have not made any progress in the last two days. AFAIK, once I pick up the device, I want to get the distance between the beacon and I and assign that to a 2 second delay, which will then increase linearly until it terminates once I arrive at the beacon and teleport to the next level. I am uncertain about a lot - should I spawn sound attached to a invisible component on my character? Should I play the sound 2D? Will I be using a WhileLoop for this?

I sincerely appreciate any insight on this topic. I come from an audio background, so my ability to use intuition in this area only gets me so far.

Thanks!

Product Version: UE 4.18
Tags:
more ▼

asked Dec 11 '17 at 08:17 PM in Blueprint Scripting

avatar image

Alakai13
1 1 1

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

1 answer: sort voted first

Hi,

Here is a simple solution. You are simply dividing the distance to the player and in my case the owner of the component (since I'm using an example of a blueprint component), with a set number of intervals. Hook that in to a delay and then play sound. If you want a more complex one I can post that.

alt text

alt text

alt text

1.png (357.0 kB)
2.png (279.4 kB)
3.png (21.3 kB)
more ▼

answered May 08 '18 at 12:21 PM

avatar image

ExtraTorpedo
25 3 7

(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