How to get the surface type, and physical material with a projectile in C++?(No Linetraces)

I completely understand it is just in order for this to work I need to have no nullptrs. I have placed physical mats on the materials and set the surface type with Return Material On Move checked.