Difference between revisions of "LlSetClickAction"

From Second Life Wiki
Jump to navigation Jump to search
(Removed inventory as a catagory)
Line 67: Line 67:
{{LSL DefineRow||[[touch_end]]}}
{{LSL DefineRow||[[touch_end]]}}
|also_articles={{LSL DefineRow||{{LSLGC|Detected}}}}
|also_articles={{LSL DefineRow||{{LSLGC|Detected}}}}
|notes
|notes=With the CLICK_ACTION_* flag set to anything but [[CLICK_ACTION_NONE]] or [[CLICK_ACTION_TOUCH]] (default), the script won't trigger the {{LSLGC|Touch|touch* events}} anymore when the prim is clicked.
|history=Introduced in SL 1.19.1(0)
|history=Introduced in SL 1.19.1(0)
|cat1=Prim
|cat1=Prim

Revision as of 15:18, 1 December 2008

Summary

Function: llSetClickAction( integer action );

Sets the action performed when a prim is clicked upon.

• integer action CLICK_ACTION_* flag

When the cursor is hovers over the prim the cursor image changes to reflect the action.

Constants

Flag Description Cursor
CLICK_ACTION_NONE 0 Performs the default action: when the prim is touched, touch events are triggered
CLICK_ACTION_TOUCH 0 When the prim is touched, touch events are triggered
CLICK_ACTION_SIT 1 When the prim is touched, the avatar sits upon it Toolsit.png
CLICK_ACTION_BUY 2 When the prim is touched, the buy dialog is opened Toolbuy.png
CLICK_ACTION_PAY 3 When the prim is touched, the pay dialog is opened Toolpay.png
CLICK_ACTION_OPEN 4 When the prim is touched, the object inventory dialog is opened Toolopen.png
CLICK_ACTION_PLAY 5 When the prim is touched, html-on-a-prim is enabled? Toolplay.png
CLICK_ACTION_OPEN_MEDIA 6 When the prim is touched, the web media dialog is opened Toolmediaopen.png

Examples

Notes

With the CLICK_ACTION_* flag set to anything but CLICK_ACTION_NONE or CLICK_ACTION_TOUCH (default), the script won't trigger the touch* events anymore when the prim is clicked.

See Also

Events

•  touch_start
•  touch
•  touch_end

Functions

•  llPassTouches

Articles

•  Detected

Deep Notes

History

Introduced in SL 1.19.1(0)

Search JIRA for related Issues

Signature

function void llSetClickAction( integer action );