Difference between revisions of "Touch start"

From Second Life Wiki
Jump to: navigation, search
m (changed to a 'pre' tag)
m (LSL touch start moved to Touch start: removing prefix)
(No difference)

Revision as of 17:30, 20 February 2007


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


You can use numbers 0 through num_detected - 1 to get detected agent keys:

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

Deep Notes


event void touch_start( integer num_detected );