Scripting/Server/Functions/SetVirtualWorldTime

(v0.3.1+) Time of day for ONE virtual world: only players whose VirtualWorld is that id see it, and a player who moves into that world gets it at once. The world's clock runs like the normal one (SetTimeScale, SetTimeLock apply). Pass hour -1 to remove the override. SetTime afterwards applies to every world again and drops all per-world times.

Syntax

SetVirtualWorldTime(worldid, hour, minute)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "setvirtualworldtime" )
	{
		SetVirtualWorldTime( 0, 12, 0 );
	}
}

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

Section: World settings

Categories: Server functions | World settings