DIFF

Ocean API

Part of Decals API

Functions

proto native float GetOceanHeight(float worldX, float worldZ)Get water ocean height at given pointmore…
proto native vector GetOceanHeightAndDisplace(float worldX, float worldZ)Get water ocean height and displacement at given point, returns vector(displaceX, height, displaceZ)more…
proto native bool IsOcean()Is ocean availabled

Function Documentation

GetOceanHeight

proto native float GetOceanHeight(float worldX, float worldZ)

Get water ocean height at given point

worldX
world x position
worldZ
world z position

GetOceanHeightAndDisplace

proto native vector GetOceanHeightAndDisplace(float worldX, float worldZ)

Get water ocean height and displacement at given point, returns vector(displaceX, height, displaceZ)

worldX
world x position
worldZ
world z position