ScriptEvent:traceOriented

From Mod Wiki
Revision as of 11:16, 5 November 2007 by Wizz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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
vector angles -- Angles to rotate the bounds by.
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, rotated by the specified angle, through the world, and returns the fraction of the trace which passed.