Don't click here unless you want to be banned.

LSL Wiki : llResetTime

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawling22.us.archive.org
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
Comments [Hide comments/form]
Resetting time will affect the timer events?
-- RaffaelePirandello (2006-06-10 02:10:23)
Nope, the "script's time" reffered to by llGetTime, llGetAndResetTime and llResetTime is unrelated to and will not affect that of llSetTimerEvent and timer
-- ChristopherOmega (2006-06-10 16:40:58)
Attach a comment to this page: