check if a position has a roof over it

so i am working on a gamemode that will have npcs spawning based on the nodegraph pos and player pos,

i would like them only to spawn outside but cant seem to find anything i can use to see if a skybox is directly overhead.
(i dont want the npcs to spawn inside of buildings)
The only thing i can find that seems like it could work would be
This doesnt seem to work the way i want

and this is what i will be using for the nodegraph positions

Trace line will work for detecting if anything is above the player

can i check specifically for the skybox with traceline?

I also asked a similar question when I first started:

-Snip- Derp read it wrong