Well the difference between fall and sliding away should be:
If there is NO terrain under your char, you are falling
If there IS terrain under your char, check the normal of the impact point.
if the normal is too much perpendicular, “Slide away”
if the normal is not too much perpendicular, “stay”
You can know if 2 vectors (normal and up vector of your char) are perpenducular using Cross Product
here a nice video about the math https://www…com/watch?v=xmgp53xPA9M
watch it to understand the value from 0 to 1, then you can use the unreal cross product node