LSL Wiki Mirror 7-7-7 : llResetTime

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
llResetTime()

Resets the script's time to zero. See also llGetTime and llGetAndResetTime.

This resets the script's time when touched:
default
{
    touch_start( integer total_number )
    {
        float elapsed = llGetTime(); 
        llWhisper( 0, "It has been " 
                      + (string)elapsed
                      + " seconds since the time was last reset." );
        llResetTime(); // reset the time to zero
    }
}


Functions | Time | Reset
There are 2 comments on this page. [Display comments/form]