Spawn actor and align above terrain

It works! haha. I Just have one more question, how can u make it so that the actor wont spawn on walls or super steep hills like this

Like, if you try to spawn on a steep hill like that or a wall, i’d like it to print a string saying “You can’t spawn here” Than i’ll be pretty much done with object spawning. I’d appreciate if u can help with this!