Difference between revisions of "Touch"

From Second Life Wiki
Jump to navigation Jump to search
(<lsl> example)
m
Line 27: Line 27:
|cat1=Touch
|cat1=Touch
|cat2=Detected
|cat2=Detected
|cat3
|cat3=Grab
|cat4}}
|cat4}}

Revision as of 20:55, 28 September 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

Caveats


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