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

pointcontents

From Quake Wiki

Revision as of 00:41, 25 July 2023 by Eukara (talk | contribs) (Initial draft.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax:

float pointcontents(vector pos)

Checks the given point to see what is there. Just because a point is empty does not mean that the player can stand there due to the size of the player - use tracebox for such tests.

Parameters:

pos - The position to test.

Returns:

Returns one of the CONTENT_* constants. See QuakeC Globals for examples.