Water::getWaterHeight

From RAGE Multiplayer Wiki
Revision as of 20:27, 6 May 2017 by Marty uploader (talk | contribs) (yay)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

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

Required Arguments

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

Return value

  • float

Example

todo

See also

Template:Water function c