Scripting/Server/Functions/SetVirtualWorldWeather

(v0.3.1+) Weather for one virtual world only (weatherid -1 removes the override). SetWeather applies to every world again and drops all per-world weather.

Syntax

SetVirtualWorldWeather(worldid, weatherid)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "setvirtualworldweather" )
	{
		SetVirtualWorldWeather( 0, 0 );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: World settings

Categories: Server functions | World settings