Garry's Mod Wiki

Garry's Mod Wiki

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

Description

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

This function will throw an error in the menu realm because it internally uses util.TraceLine which doesn't exist in the menu realm and thus error.

Arguments

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 or sequental table<Entity> or sequental table<string> or function filter = nil
Entity which should be ignored by the trace. Can also be a table of entities or a function - see Trace structure.

Returns

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...