Touch Time Basic

Date 2010/5/12 5:05:08 | Topic: Time

Will tell you how many seconds between Touch_Start and Touch_End.


float t;
 
default
{
    
touch_start(integer num_detected)
    {
        
llGetTime();
    }
    
    
touch_end(integer num_detected)
    {
        
llOwnerSay((string)(llGetTime() - t) + " seconds between touch_start and touch_end");
    }
}




This script comes from Alicia Stella Design - Best Tip Jars in Second Life
http://www.aliciastella.com

The URL for this script is:
http://www.aliciastella.com/modules/AMS/article.php?storyid=34