Difference between revisions of "Touch end"

From Second Life Wiki
Jump to navigation Jump to search
Line 4: Line 4:
|constants
|constants
|spec
|spec
|caveats
|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>
<pre>

Revision as of 15:23, 27 September 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:

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

See Also

Events

•  touch_start
•  touch

Functions

•  llPassTouches

Deep Notes

Signature

event void touch_end( integer num_detected );