Hello there, I’m fairly new to UE4 so my problem might be a stupid problem.
I’m trying to implement a system to play a sound for each footstep the player does. The animation can send notifies and it works. I made a Class BP for the Footstep. It has variables for the sounds and a “Spawn Footstep” function which does the stuff (I will test this later) but it’s never called.
I tried to call the function on the “Footstep” variable of my Player (v1 on the screenshot) but it didn’t work. I then made a Spawn Footstep function on my player (v2 on the screenshot) and it works, but then the function of Footstep class don’t work. I tried an “IsValid” and I saw that my Footstep isn’t. What did I do wrong ?
Thanks a lot.
Notification BP : (works)
SpawnFootstep function on Footstep Class BP : (can’t be called because I fail to validate a Footstep. You can see the variables and defaults on the right side)
SpawnFootstep function on Player Class BP : (can be called but fails to call the SpawnFootstep of Footstep Class BP because I still fail to validate its Footstep. You can see the Footstep variable at the bottom left corner)