Scripting/Server/Functions/SetWeatherLock

true keeps the weather you set with SetWeather (re-sent every 3 s) instead of letting the game cycle it; false returns to the game's own weather. Works together with SetTimeLock (v0.2.0+).

Syntax

SetWeatherLock(bool)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "setweatherlock" )
	{
		SetWeatherLock( true );
	}
}

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

Section: World settings

Categories: Server functions | World settings