Notch Notch Manual 0.9.23
 Light | Dark
GlobalTime

GlobalTime

Purpose #

Gets or sets the time on the Notch timeline in seconds.

Syntax #

float GlobalTime;

Example : Getting #

function Update()
{ 
   currentTime = UpdateContext.GlobalTime;
}

Example : Setting #

function Update()
{
   UpdateContext.GlobalTime = 5.0;
}
Please note this is a member variable of UpdateContext, not a function.