Skip to main content

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​

mp.game.water.getWaterHeight(x, y, z, height);

Required Arguments​

  • x: float
  • y: float
  • z: float
  • height: float

Return value​

  • float

Example​

// todo