I have the 2 sounds for walking and running so is there a way to make the sounds switch when I hold shift and don’t hold shift.
Hey there @American_yoshi5! Are you using animation notifies? If so, when you’re going to process the footstep sound, you’d do something like this:
All it’s doing here is selecting which sound to play based on your current ground speed (if you’re using the default mannequin’s animation blueprint that is).
Probably we would need to know more about your setup and how you what to play those sounds. There are so many ways.
-You can have a bool variable “IsSprinting” and switch sound based on that.
-Also 2 sounds in a single sound cue and switch parameter would work.
Well, there are no animations and I want to put in 1 sound for walking at 400 speed and one sound for running at 750 speed
I like what SupportiveEntity proposed.
Not sure how “GroundSpeed” is computed. SupportiveEntity???
I am doing the following to compute the “speed” of my character. This, I believe, will not accomplish what you want to do when in the air (jumping or falling)… …my “speed” is the output of “Vector Length”…
Ground speed is calculated the same way you do your calculation but with just XY to only take horizontal.
Without animations at all, you’d just need to do this check every time your step sound event is passed. However if your step sounds aren’t being triggered repeatedly with events this would be a bit different. Could we see your setup for triggering the footsteps?