TR_ClipRayToEntityEx

Last Updated2021-06-24
Created At2018-08-13

Clips a ray to a particular entity.

native Handle TR_ClipRayToEntityEx(const float pos[3], const float vec[3], int flags, RayType rtype, int entity)

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.
int entity
Entity to clip to.

Return Value

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

Error

Invalid entity.