Difference between revisions of "Touch end"

From Second Life Wiki
Jump to navigation Jump to search
(Caveat incorrect. touch_end fires independently of touch_start. Most of my scripts use touch_end exclusively.)
m
Line 33: Line 33:
|cat1=Touch
|cat1=Touch
|cat2=Detected
|cat2=Detected
|cat3
|cat3=Grab
|cat4}}
|cat4}}

Revision as of 20:55, 28 September 2008

Description

Event: touch_end( integer num_detected ){ ; }

Triggered when agent stops clicking on task

• integer num_detected

Caveats


Examples

You can use numbers 0 through num_detected - 1 to get detected agent keys: <lsl>float t;

default {

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

}</lsl>

See Also

Events

•  touch_start
•  touch

Functions

•  llPassTouches

Deep Notes

Signature

event void touch_end( integer num_detected );