Change footstep sound based on material in UE4 Blueprint


#1

Hello everybody.

I’m trying to set up my footsteps sounds to change on the material that is on the level, so that I can use only one event for footsteps, but multiple parameters on one event (E.g Celest fmod project --> Madeline --> footsteps --> surface_index) laid out on the ground for UE4. I’ve searched earlier Q&A on this site and found this Change footstep sound based on material

When it got to the solution, I’m not getting where they mean that I should put the FMOD Events and FMOD Set Parameter on the blueprint. Could anyone explain or show where exactly how my blueprint is supposed to be?


#2

Hey there,

I started the thread you were referring to.

Whenever a sound is linked to an animation, everything goes within the blueprint of that animation (as long as it is a one-shot sound). First of all you have to create markers on the timeline of the animation when you want your sound to be triggered. Name them properly, because you need to refer to them later. After that you trigger a “Play Event Attached” and a “Set Parameter” node with an “AnimNotify” node, that is referring to your markers (it has the marker’s name on it).

That’s the basic way of triggering a sound, that is connected with an animation.


#3

Hi Eneco.

I understand the notifymarker in the animations, and such. But the blueprint setup is still kinda confusing for me. Would you kindly send a picture of the blueprint or a blueprint link to how this is set up?


#4

Found the solution, made a public Blueprint people can copy: https://blueprintue.com/blueprint/oj0eebr4/

It’s almost like the one bohdonsayre_fs, and what he said is relevant here as well:

“In FMOD, use a single event with one parameter called SurfaceType, and place MultiInstruments on the SurfaceType timeline (not on the main timeline), at each integer value (0, 1, 2, …) that match the SurfaceTypes you defined in ProjectSettings (the Celeste demo project from FMODs site has an example of this setup)”