Difference between revisions of "Touch"

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

Revision as of 22:34, 24 January 2008

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

Examples

<lsl>default {

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

}</lsl>

See Also

Events

•  touch_start
•  touch_end

Functions

•  llSetTouchText Set the pie menu's text for touch-action
•  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 );