Difference between revisions of "ScriptEvent:trace"

From Mod Wiki
 
(No difference)

Latest revision as of 11:17, 5 November 2007

Parameters

vector start -- The start position for the trace.
vector end -- The end position for the trace.
vector mins -- The mins of the bounds.
vector maxs -- The maxs of the bounds
integer mask -- Collision mask to use.
object ignore -- Object to ignore in the check, may be an entity or a client entity.

Result

float

Supported By

sdSysCallThread

Comments

  • If both the mins and maxs are empty, an optimized point trace will be used.
  • You can use saveTrace to save the results of this trace.

Functionality

Traces the given bounds through the world, and returns the fraction of the trace which passed.