Difference between revisions of "Touch end"

From Second Life Wiki
Jump to navigation Jump to search
(<lsl> example)
Line 6: Line 6:
|caveats=*The [[state]] must have a [[touch_start]] event or this event will not trigger.
|caveats=*The [[state]] must have a [[touch_start]] event or this event will not trigger.
|examples=You can use numbers 0 through num_detected - 1 to get detected agent keys:
|examples=You can use numbers 0 through num_detected - 1 to get detected agent keys:
<pre>
<lsl>float t;
float t;


default
default
Line 19: Line 18:
         llOwnerSay((string)(llGetTime() - t) + " seconds between touch_start and touch_end");
         llOwnerSay((string)(llGetTime() - t) + " seconds between touch_start and touch_end");
     }
     }
}
}</lsl>
</pre>
|helpers
|helpers
|also_header
|also_header

Revision as of 20:26, 31 December 2007

Description

Event: touch_end( integer num_detected ){ ; }

Triggered when agent stops clicking on task

• integer num_detected

Caveats

All Issues ~ Search JIRA for related Bugs

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 );