Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

Difference between revisions of "checkclient"

From Quake Wiki

(Created page with "====Syntax:==== <code>entity checkclient()</code> This function returns a potentially visible player for the current self entity. Mainly used by monsters to detect players n...")
(No difference)

Revision as of 02:51, 25 March 2013

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.