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"

VR footsteps blueprint?

Hey! So I'm fairly new to UE4, and for work I've been doing sound programming for a VR game. We want to add in footsteps to play as the character moves.

I've been trying to program in footsteps the past few days, but I'm having no luck. Any tutorial I can find is for the third-person template, which I can't use as there's no mesh for VR.

Does anyone know of any blueprints I can use for adding footsteps (preferably without needing to use a mesh)? Thanks in advance!

Product Version: UE 4.18
Tags:
more ▼

asked Jan 30 '18 at 10:13 AM in VR

avatar image

anonymous1234567
1 1 1

avatar image anonymous1234567 Jan 30 '18 at 01:27 PM

Update: I found a blueprint for footsteps that sort of works using this video. I had to make some changes but I'm running into two problems: 1. If I attach the branch to the Set Distance variable at True, it breaks the code and the footsteps won't play. error_1 Now, I can fix this error by attaching the False node to the Set Distance variable, however this causes the footsteps to play all at once instead of one at a time. error_2 I tried adding a Delay in the hopes of spacing out the sounds, but this did not fix the error. What would cause these errors to occur and is there any way I can fix them?

Also, I modified the motion controls using this tutorial, would that cause any errors with my sound blueprint? movement_graph

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

1 answer: sort voted first

Hello,

I don't think that using "Get Component Velocity" will work for this. (unless you're just walking straight down one axis, and never turning)

Since you said you're new - one helpful thing to do would be hook up a "print string" node in your tick execution, and piping in the variables you want to watch.

Try doing this with the "Distance" variable and make sure everything is working (Distance increases to StepDistance then resets(Make sure you're setting a default value in StepDistance!))

more ▼

answered Jan 31 '18 at 05:11 PM

avatar image

Alex O ♦♦ STAFF
2.5k 3 8 9

avatar image Alex O ♦♦ STAFF Jan 31 '18 at 05:25 PM

as a side note - this may be a cleaner way to set up your footstep sounds

https://www.youtube.com/watch?v=rZhrjHSN_II

avatar image anonymous1234567 Feb 02 '18 at 02:36 PM

Thanks for answering! I think I'll try setting up the footsteps as shown in the video you linked. Seems it'll be easier to code. Thanks again.

(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