UTIL WaterLevel: Difference between revisions
Jump to navigation
Jump to search

Tip:CWaterTraceFilter should be used instead as it is less expensive than UTIL_WaterLevel.[1]
(Created page with "{{lang|UTIL WaterLevel|title=<code>UTIL_WaterLevel</code>}} {{ent|UTIL_WaterLevel}} is a UTIL function that measures the height of water within a bounding box. {{tip|{{en...") |
mNo edit summary |
||
Line 2: | Line 2: | ||
{{ent|UTIL_WaterLevel}} is a [[UTIL]] function that measures the height of water within a bounding box. | {{ent|UTIL_WaterLevel}} is a [[UTIL]] function that measures the height of water within a bounding box. | ||
{{tip|{{ent|CWaterTraceFilter}} should be used instead as it is less expensive than {{ent|UTIL_WaterLevel}}.<sup>[https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/util.cpp#L1580 [1]]</sup>}} | {{tip|{{ent|CWaterTraceFilter}} should be used instead as it is less expensive than {{ent|UTIL_WaterLevel}}.<sup>[https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/util.cpp#L1580-L1583 [1]]</sup>}} | ||
==Declaration== | ==Declaration== | ||
<source lang=cpp> | <source lang=cpp> |
Latest revision as of 11:13, 5 January 2022


UTIL_WaterLevel is a UTIL function that measures the height of water within a bounding box.

Declaration
float UTIL_WaterLevel( const Vector &position, float minz, float maxz );