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

checkclient

From Quake Wiki

Revision as of 02:51, 25 March 2013 by Necros (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.