Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:3.3

Description

Description:Adjusts the color of any water surfaces on the current map.

Color is not reset between mission reloads. The default color for maps that do not have a color specified (by its waterColor parameter - see Class Underwater in the VBS3 Developer Reference) is [0.02,0.08,0.12,1].

Syntax

Syntax:setWaterColor color
Parameters:
  • color: Color - Water color (value for alpha is ignored).
Return Value:Nothing

Examples

Examples:
setWaterColor [0,.5,.5,1];

Additional Information

See also: getWaterColor
Multiplayer:
Problems:

Notes