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"

Why is my timer not working?

alt text

I realize I may not be going about this optimally because I'm very new, but I'm trying to implement a walking sound with the first person character provided in the blueprint template. The time set on the timer is the length of the audio clip so it can loop well if you're walking. I have several questions.

One, why is the timer not repeatedly firing my sound?

Two, ever since I began this project, this particular blueprint will not light up strings between nodes to show me the data flow so I can debug. It has never worked and I can never find any answers anywhere as to how to enable that feature for this one blueprint.

Product Version: Not Selected
timer.png (256.4 kB)
more ▼

asked Dec 15 '14 at 04:01 PM in Blueprint Scripting

avatar image

164 26 26 33

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

1 answer: sort voted first

You need to create a custom event and call it WalkSound, then plug that to the branch instead of the Timer. However, you should normally use anim notifies for footstep sounds if that is what you are doing.

more ▼

answered Dec 15 '14 at 04:07 PM

avatar image

16.8k 671 167 676

avatar image Bennick Dec 15 '14 at 04:16 PM

I'm not using any animations or models. This is a very basic prototype of a game concept I'm doing to learn the engine, so this version of sound implementation is sufficient for my current purposes.

How do I set up the parameters of the custom event? I can create it, but I can't put input events within it. Could you please show me an example of what you mean?

And also, do you know why I haven't been able to see the data flow on the strings between the nodes?

avatar image Bennick Dec 15 '14 at 04:31 PM

alt text

Did this just now. Works perfectly, thank you, but I can't help but think this isn't how I should be doing it. tips?

and that data flow question is really important too, if you could help me with that.

timer.png (278.3 kB)
avatar image Jacky Dec 15 '14 at 04:40 PM

Hmm, this wasnt how i meant and i dont even know how this setup works the way you like. Do this:

  • Get rid of the WalkSpeed function(blue node)

  • Unplug WalkSpeed custom event and then plug it to Branch node.

  • Create a Begin Play event again and connect it to the Timer like you did before

  • Unplug the Timer from the branch node.

For debug highlights; on the top toolbar you'll see a Debug Filter with a dropdown list. Click on it and select the blueprint you want to debug and now it should work.

avatar image Bennick Dec 15 '14 at 05:15 PM

Okay. Thank you so much!

(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