Respawn character at location only if floor detected

This can all depend on the game you have but a general easy way to check if there is a floor beneath something is a simple line trace.

This will return true if it detects a floor under the actor. False if no floor is detected.