Difference between revisions of "Touch start"

From Second Life Wiki
Jump to navigation Jump to search
m (LSL touch start moved to Touch start: removing prefix)
Line 21: Line 21:
|helpers
|helpers
|also_header
|also_header
|also_events
|also_events=
|also_functions
{{LSL DefineRow||[[touch]]|}}
{{LSL DefineRow||[[touch_end]]|}}
|also_functions=
{{LSL DefineRow||[[llPassTouches]]|}}
|also_articles
|also_articles
|also_footer
|also_footer

Revision as of 18:28, 2 March 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

Caveats


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

See Also

Events

•  touch
•  touch_end

Functions

•  llPassTouches

Deep Notes

Signature

event void touch_start( integer num_detected );