Trace:GetEntityIndex(Trace) shared Get the index of the entity that was hit. Argument trace Trace Returns integer The index of the entity that was hit. Examples Trace:GetEntityIndex – Get the index of the entity that was hit.