- Documentation
- Server functions
- setWaterColor
Function
setWaterColor
Stores the water colour (RGB 0-255) and its opacity (200 by default).
Syntax
bool setWaterColor(int r, int g, int b [, int a = 200])Arguments
rint- Red.
gint- Green.
bint- Blue.
aint, optional = 200- Opacity 0-255.
Returns
true on success.
Example
setWaterColor(0, 120, 60, 220)
Notes
State for scripts. Water in the game keeps its colour.