I am currently trying to make different footstep sounds for different parts of a landscape, but footstep sounds aren’t playing on the landscape. Sounds do work if I apply a Phys Material to a standard object like a plane, or a cube and walk on it, but not a landscape. I’m not sure, is this an issue with the landscape or my blueprint?
My method to get sounds is to send a tracer to determine the phys material on the object and play the correct sound, but for landscape, it picks default rather than any specific ground type.
For my setup, I created a basic material with 3 types, grass, stone, and dirt, when I run code it prints out default rather than taking any of the 3 options.
I know I set up the phys material correctly by hooking it up to the maps Landscape Layer(see picture below)
Does anyone know why sound isn’t working, I think at one point it used to work. I should note sound does work, it’s not muted, it only plays the default incorrect sound.
Tracer works on basic material with a set phys material, example: grass plays grass sound stone sounds like stone.
The tracer sends default value rather than a correct sound. Example: all-terrain, doesn’t matter section plays default footstep sound.
The setup for my landscape material.
Below is the layout of my blueprint.
To reiterate, the blueprint gets the player’s location and shoots tracer down 150, if tracer hits, code goes through the selector and plays the appropriate sound, but looking at my print string, on terrain it only ever prints default whereas with, let’s say a plane(or any static meth) covered in a grass material, it properly prints grass in debug as well as plays proper sound.