Scripting/Server/Functions/SetTime

Sets/reads the shared game clock. SetTime applies to every virtual world; use SetVirtualWorldTime for one world only.

Syntax

SetTime(hour, minute)
GetHour()
GetMinute()

Arguments

Example

function onScriptLoad()
{
	SetTime( 22, 30 );     // 22:30, night
}

Section: World settings

Categories: Server functions | World settings