EntRefToEntIndex Function

Retrieves the entity index from a reference.

int EntRefToEntIndex(int ref)

Parameters

int ref

Entity reference.

Return Value

Entity index.