GetClientAimTarget Function

Returns the entity a client is aiming at.

int GetClientAimTarget(int client, bool only_clients)


int client

Client performing the aiming.

bool only_clients

True to exclude all entities but clients.

Return Value

Entity index being aimed at. -1 if no entity is being aimed at. -2 if the function is not supported.


Invalid client index or client not in game.