User:Strife Onizuka/Sandbox/Switch/Switch: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{/Template:Test}} | {{/Template:Test|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: | |||
<pre> | |||
default | |||
{ | |||
touch_start(integer num_detected) | |||
{ | |||
integer i = 0; | |||
for(; i<num_detected; ++i) | |||
llWhisper(0, "Touched by " + llKey2Name(llDetectedKey(i))); | |||
} | |||
} | |||
</pre> | |||
|helpers | |||
|also_header | |||
|also_events= | |||
{{LSL DefineRow||[[touch]]|}} | |||
{{LSL DefineRow||[[touch_end]]|}} | |||
|also_functions= | |||
{{LSL DefineRow||[[llPassTouches]]|}} | |||
|also_articles | |||
|also_footer | |||
|notes | |||
|mode | |||
|deprecated | |||
|cat1=Touch | |||
|cat2=Detected | |||
|cat3 | |||
|cat4 | |||
}} |