util.QuickTrace
From Garry's Mod
Contents |
Description
Performs a trace with the given origin, direction and filter.
Arguments
Vector origin
The origin of the trace.
Arguments
Vector endpos
The end point of the trace, relative to the start.
This is the direction of the trace times the distance of the trace.Arguments
Entity filter=nil
Entity which should be ignored by the trace. Can also be a table of entities or a function - see Trace structure.
Returns
Trace result. See TraceResult structure.