Enumerates over entities along a ray. This may find entities that are close to the ray but do not actually intersect it. Use TR_Clip*RayToEntity with TR_DidHit to check if the ray actually intersects the entity.
native void TR_EnumerateEntities(const float pos[3], const float vec[3], int mask, RayType rtype, TraceEntityEnumerator enumerator, any data = 0)