How can is auto rotate to floor angle

Take the C++ response on this thread rotation-from-normal and try to translate it in BP.