Difference between revisions of "Touch start"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{LSL_Event|event_id=2|event_delay|event=touch_start|p1_type=integer|p1_name=num_detected|p1_desc=Number of agents detected touching during the last clockcycle|event_desc=Triggered by the start of agent clicking on task|constants|spec|caveats|examples=You can use numbers 0 through num_detected - 1 to get detected agent keys:
{{LSL_Event|event_id=2|event_delay|event=touch_start
  touch_start(integer num_detected)
|p1_type=integer
  {
|p1_name=num_detected
    integer i = 0;
|p1_desc=Number of agents detected touching during the last clockcycle
    for(; i<num_detected; ++i)
|event_desc=Triggered by the start of agent clicking on task
    llWhisper(0, "Touched by " + llKey2Name(llDetectedKey(i)));
|constants
  }
|spec
|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)));
    }
}
|helpers
|helpers
|also_header|also_events|also_functions|also_articles|also_footer
|also_header
|notes|mode|deprecated|cat1=Touch
|also_events
|also_functions
|also_articles
|also_footer
|notes
|mode
|deprecated
|cat1=Touch
|cat2=Detected
|cat2=Detected
|cat3
|cat3
|cat4}}
|cat4=Stub
{{LSLC|Stub}}
}}

Revision as of 21:48, 9 February 2007