Macaw OS C reference

Function newwater

#include <macawlevel.h>
int newwater(
    int level,
    double x0,
    double z0,
    double x1,
    double z1,
    double y
);

Adds a water surface of your own: a flat rectangle at a height. buildlevel makes the list again from the level's table, so add yours after building.

Parameters

levelint
The level to add it to.
x0double
X of one corner.
z0double
Z of that corner.
x1double
X of the opposite corner.
z1double
Z of the opposite corner.
ydouble
The water's height.

Returns int

The new water's number, or -1 if one of the numbers wasn't a proper number.

In Water, with watercount, waterinfo, waterreflect, waterdraw, waterbake, waterbaked, waterreflections, watercamera.