TR_TraceRayFilterEx

Last Updated2022-12-02
Created At2007-07-08

Starts up a new trace ray using a new trace result and a customized trace ray filter. Calling TR_Trace*Filter or TR_TraceRay*Ex from inside a filter function is currently not allowed and may not work.

native Handle TR_TraceRayFilterEx(const float pos[3], const float vec[3], int flags, RayType rtype, TraceEntityFilter filter, any data = 0, TraceType traceType = TRACE_EVERYTHING)

Parameters

const float[3] pos
Starting position of the ray.
const float[3] vec
Depending on RayType, it will be used as the ending point, or the direction angle.
int flags
Trace flags.
RayType rtype
Method to calculate the ray direction.
Function to use as a filter.
any data
Arbitrary data value to pass through to the filter function.
TraceType traceType
Trace type.

Return Value

Handle Ray trace handle, which must be closed via CloseHandle().