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

Difference between revisions of "pointcontents"

From Quake Wiki

(Initial draft.)
(No difference)

Revision as of 00:41, 25 July 2023

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.