llResetTime
function
Function syntax
llResetTime();- Energy
- 10
Resets the script's elapsed time timer back to zero.
Resets the script-time timer to zero.
llResetTime();Caveats
Section titled “Caveats”- Script time resets when…
- Script reset (user or
llResetScriptorllResetOtherScript) - Call to either
llResetTimeorllGetAndResetTime - Script time measures real world time, it is unaffected by time dilation.
Examples
Section titled “Examples”Example 1
default { state_entry() { llResetTime(); } touch_start(integer num_touch) { float time = llGetTime(); //Instead getting, and then resetting the time, we could use llGetAndReset() to accomplish the same thing. llResetTime(); llSay(0,(string)time + " seconds have elapsed since the last touch." ); }}See also
Section titled “See also”Functions
Section titled “Functions”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.