Garry's Mod Wiki

Revision Difference

util.QuickTrace#518594

<function name="QuickTrace" parent="util" type="libraryfunc"> <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.&#xA;This is the direction of the trace times the distance of the trace.</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 &lt;page&gt;Trace&lt;/page&gt;.</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="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>Trace</page>.</arg>⤶ </args> <rets> <ret name="" type="table">Trace result. See &lt;page&gt;TraceResult&lt;/page&gt;.</ret> <ret name="" type="table">Trace result. See <page>TraceResult</page>.</ret> </rets> </function>