Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
checkclient
From Quake Wiki
Syntax:
entity checkclient()
This function returns a potentially visible player for the current self entity. Mainly used by monsters to detect players nearby. Note that this only uses the PVS to determine 'visibility', but actual line of sight is checked afterwards in QC.
Parameters:
- None
Returns:
- Returns a player entity that might be able to be seen by the current self entity.