Eye Tracing

So, I have these cluster of weapons that ignite entities if the are within my eye trace. Now someone told me a while there’s a way I can get it to ignore map materials. So for example, fences. Right now it counts the fence as as what I’m looking at, when what I’m really looking at (or what I want to look at) is behind it. Ideas?

Use the trace result from the eyes to make a colinear trace, except this one is masked to ignore fences. There’s a list of MASK Enumerators you can use and I think you can make it ignore fences.