TR_ClipCurrentRayToEntityEx Function

Clips the current global ray (or hull) to a particular entity.

Handle TR_ClipCurrentRayToEntityEx(int flags, int entity)

Parameters

int flags

Trace flags.

int entity

Entity to clip to.

Return Value

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

Errors

Invalid entity.