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


Introduced in

Version:1.00

Description

Description:Sets the overcast to given value, which is smoothly transitioned to during given time (in seconds).  

Syntax

Syntax:time setOvercast overcast
Parameters:
  • time: Number - Overcast transition time (in seconds). A value of 0 means immediate change.
  • overcast: Number - Overcast in the range of 0 - 1. An overcast setting of 0 means clear (sunny) weather, and 1 means thunderstorms, fog, and rain are very likely. Higher overcast values also result in higher wind speeds.
Return Value:Nothing

Examples

Examples:
50 setOvercast 0.5;

Additional Information

See also: overcast, nextWeatherChange
Multiplayer:Each client and the server can have differing overcast values.
Problems:

Notes







Posted on August 4, 2006 - 12:00
hardrock
Notes from before the conversion:


Use setRain if you want to make sure it rains.


Ceeeb
Only one script command induced weather change (either setOvercast or setFog) can be happening at a time. Starting a new weather change will immediately halt the current weather change. setRain changes are independent and can occur simultaneously to a weather change.