UTIL WaterLevel: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(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&#93;]</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&#93;]</sup>}}
==Declaration==
==Declaration==
<source lang=cpp>
<source lang=cpp>

Latest revision as of 11:13, 5 January 2022

English (en)Translate (Translate)

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

Tip.pngTip:CWaterTraceFilter should be used instead as it is less expensive than UTIL_WaterLevel.[1]

Declaration

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