UTIL Traceline

From Valve Developer Community

UTIL_TraceLine() is used to trace a straight line from a starting position out to an ending position or until it hits the world or a solid/vphysics entity. For more information and an example see TraceLines.