Water::getWaterHeight
Внешний вид
This function set height to the value of z-axis of the water surface.
This function works with sea and lake. However it does not work with shallow rivers (e.g. raton canyon will return -100000.0f)
note: seems to return true when you are in water
Syntax
<syntaxhighlight lang="javascript">mp.game.water.getWaterHeight(x, y, z, height);</syntaxhighlight>
Required Arguments
- x: float
- y: float
- z: float
- height: float
Return value
- float
Example
<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>