TR_TraceRayFilterEx Function

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.

Handle TR_TraceRayFilterEx(const float pos[3], const float vec[3], int flags, RayType rtype, TraceEntityFilter filter, any data)


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.

TraceEntityFilter filter

Function to use as a filter.

any data

Arbitrary data value to pass through to the filter function.

Return Value

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