GetHitResultUnderCursorByChannel for ground / floor / terrain

hi guy
I would I know If im actually raycasting to the ground ? this click could be outside on a ground, inside on a floor. for now i am casting the hit actor to an enemy, if it fails, casting it to an item, if that fails I would assume that is on terrain. but I am not sure if it would work all the time.

any ideas ?