Difference between revisions of "Touch"

From Second Life Wiki
Jump to navigation Jump to search
m
(Added example)
Line 5: Line 5:
|spec
|spec
|caveats
|caveats
|examples
|examples=
<pre>
default {
    touch(integer num_detected) {
          llOwnerSay("I am being touched by " + llDetectedName(0) + ".");
    }
}
</pre>
|helpers
|helpers
|also_header
|also_header

Revision as of 17:38, 27 October 2007

Description

Event: touch( integer num_detected ){ ; }

Triggered whilst an agent is clicking the task. It will continue to be triggered until the the prim/object is stopped being clicked (it triggers multiple times).

• integer num_detected

Caveats


Examples

default {
     touch(integer num_detected) {
          llOwnerSay("I am being touched by " + llDetectedName(0) + ".");
     }
}

See Also

Events

•  touch_start
•  touch_end

Functions

•  llPassTouches Allows clicks captured by a child prim to be passed to the root as well

Deep Notes

Signature

event void touch( integer num_detected );