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


Introduced in

Version:1.00

Description

Description:Sets the rain density to smoothly transition to over a given time period (in seconds).

Syntax

Syntax:time setRain rain
Parameters:
  • time: Number - Rain density transition time (in seconds). A transition time of 0 means an immediate change.
  • rain: Number - Rain density in the range of 0 - 1. A rain density of 0 is no rain (setting rain to 0 does not prevent thunderstorms, if a high overcast is set), and 1 is maximum rain. 
Return Value:Nothing

Examples

Examples:
60 setRain 1;

Additional Information

See also: rain, setOvercast, setLightning
Multiplayer:Each client and the server can have differing rain values.
Problems:

Notes