Footstep sounds based on material

I am trying to write C++ code to check when a player is walking on a certain physmat and play a sound based on that physmat. I know the BP method but how would I go about doing this in C++?

I am working on figuring this out. If I am able to figure it out, I will post some information in here.

Whatever function you’re calling in blueprint, you can just check out in Visual Studio in C++ by double-clicking the node.
(This behavior is controlled by the Navigate to Native Functions editor setting.)
So, whatever you want to do in Blueprint, figure out what native functions are underlying that, and call those.

The double clicking does not seem to be working… I did see that it is using GameplayStatics which has given me another avenue to research. I appreciate the help!