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



Introduced in

Version:2.06

Description

Description:

Sets the water opacity for units underwater (diving), as well as the water fog. The effect is also apparent, if viewed from above the surface.

Syntax

Syntax:time setWaterOpacity opacity
Parameters:
  • time: Number - Time in seconds to apply the change (0: immediate).
  • opacity: Number - Opacity level. The higher the opacity, the more limited the visibility (0:totally transparent, 1: default opacity).
Return Value:Nothing

Examples

Examples:
10 setWaterOpacity 3;

Additional Information

See also: setCurrent, setWaterSurfaceOpacity
Multiplayer:
Problems:

Notes