Scripting/Server/Classes/Timer/Reset

Restart the interval countdown.

Syntax

timer.Reset()

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "reset" )
	{
		// timer is a timer handle (see Timer)
		timer.Reset();
	}
}

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

Section: Timer

Categories: Server methods | Timer