Scripting/Server/Functions/SetWeather

Sets/reads the weather id. Applies to every virtual world (it removes the per-world weather set with SetVirtualWorldWeather).

Syntax

SetWeather(id)
GetWeather()

Arguments

Example

function onScriptLoad()
{
	SetWeather( 2 );       // rain
}

Section: World settings

Categories: Server functions | World settings