TR_GetEntityIndex Function

Returns the entity index that collided with the trace.

int TR_GetEntityIndex(Handle hndl)

Parameters

Handle hndl

A trace Handle, or INVALID_HANDLE to use a global trace result.

Return Value

Entity index or -1 for no collision.

Errors

Invalid Handle.