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
}
}
This article wasn't helpful for you? Maybe the
related article at the LSL Portal is able to bring enlightenment.
Functions |
Time |
Reset