Garry's Mod Wiki

Revision Difference

util.QuickTrace#544658

<function name="QuickTrace" parent="util" type="libraryfunc"> <description>Performs a trace with the given origin, direction and filter.</description> <description>Performs a trace with the given origin, direction, and filter.</description> <realm>Shared and Menu</realm> <file line="55-65">lua/includes/extensions/util.lua</file> <args> <arg name="origin" type="Vector">The origin of the trace.</arg> <arg name="endpos" type="Vector">The end point of the trace, relative to the start.This is the direction of the trace times the distance of the trace.</arg>⤶ <arg name="dir" type="Vector">The direction of the trace times the distance of the trace. This is added to the origin to determine the endpos.</arg>⤶ <arg name="filter" type="Entity" default="nil">Entity which should be ignored by the trace. Can also be a table of entities or a function - see <page>Structures/Trace</page>.</arg> </args> <rets> <ret name="" type="table">Trace result. See <page>Structures/TraceResult</page>.</ret> </rets> </function>