Difference between revisions of "Touch start"

From Second Life Wiki
Jump to navigation Jump to search
m
(added Issues/SVC-3017)
Line 1: Line 1:
{{LSL_Event|event_id=2|event_delay|event=touch_start
{{Issues/SVC-3017}}{{LSL_Event|event_id=2|event_delay|event=touch_start
|p1_type=integer
|p1_type=integer
|p1_name=num_detected
|p1_name=num_detected

Revision as of 06:49, 25 January 2009

Description

! Event: touch_start( integer num_detected ){ ; }

Triggered by the start of agent clicking on task

• integer num_detected Number of agents detected touching during the last clockcycle

Caveats


Examples

You can use numbers 0 through num_detected - 1 to get detected agent keys: <lsl>default {

   touch_start(integer num_detected)
   {
       integer i = 0;
       for(; i<num_detected; ++i)
           llWhisper(0, "Touched by " + llKey2Name(llDetectedKey(i)));
   }

}</lsl>

See Also

Events

•  touch
•  touch_end

Functions

•  llSetTouchText
•  llPassTouches

Deep Notes

Issues

All Issues

~ Search JIRA for related Issues
   Server drops first touch event when a script returns to a state with a touch_start handler

Signature

event void touch_start( integer num_detected );