Garry's Mod Wiki


  table util.QuickTrace( Vector origin, Vector dir, Entity filter = nil )


Performs a trace with the given origin, direction, and filter.


1 Vector origin
The origin of the trace.
2 Vector dir
The direction of the trace times the distance of the trace. This is added to the origin to determine the endpos.
3 Entity filter = nil
Entity which should be ignored by the trace. Can also be a table of entities or a function - see Structures/Trace.


1 table
Trace result. See Structures/TraceResult.