Scripting/Server/Functions/SetTimeLock

true freezes the clock at the current time.

Syntax

SetTimeLock(bool)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "settimelock" )
	{
		SetTimeLock( true );
	}
}

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

Section: World settings

Categories: Server functions | World settings