Difference between revisions of "Touch start"

From Second Life Wiki
Jump to: navigation, search
m
m (changed to a 'pre' tag)
Line 8: Line 8:
 
|caveats
 
|caveats
 
|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:
default
+
<pre>
{  
+
default
    touch_start(integer num_detected)
+
{  
    {
+
    touch_start(integer num_detected)
        integer i = 0;
+
    {
        for(; i<num_detected; ++i)
+
        integer i = 0;
            llWhisper(0, "Touched by " + llKey2Name(llDetectedKey(i)));
+
        for(; i<num_detected; ++i)
    }
+
            llWhisper(0, "Touched by " + llKey2Name(llDetectedKey(i)));
}
+
    }
 +
}
 +
</pre>
 
|helpers
 
|helpers
 
|also_header
 
|also_header

Revision as of 17:25, 13 February 2007

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:

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

Deep Notes

Signature

event void touch_start( integer num_detected );