From RAGE Multiplayer Wiki
Jump to navigation Jump to search

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


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

Required Arguments

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

Return value

  • float


// todo

See also

Template:Water s function c