Difference between revisions of "Touch start"

From Second Life Wiki
Jump to: navigation, search
(see also llSetTouchText)
m
Line 32: Line 32:
 
|cat1=Touch
 
|cat1=Touch
 
|cat2=Detected
 
|cat2=Detected
|cat3
+
|cat3=Grab
 
|cat4
 
|cat4
 
}}
 
}}

Revision as of 21:56, 28 September 2008

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

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

Signature

event void touch_start( integer num_detected );