GetClientAimTarget
Returns the entity a client is aiming at.
native int GetClientAimTarget(int client, bool only_clients = true)
Parameters
int client
Client performing the aiming.
bool only_clients
True to exclude all entities but clients.
Return Value
int Entity index being aimed at.
-1 if no entity is being aimed at.
-2 if the function is not supported.Error
Invalid client index or client not in game.