Difference between revisions of "LlSetClickAction"

From Second Life Wiki
Jump to navigation Jump to search
Line 5: Line 5:
|func_desc=Sets the action performed when a prim is clicked upon.
|func_desc=Sets the action performed when a prim is clicked upon.
|func_footnote=When the cursor is hovers over the prim the cursor image changes to reflect the action.
|func_footnote=When the cursor is hovers over the prim the cursor image changes to reflect the action.
|caveats=
|caveats
|examples=
|examples
<lsl></lsl>
|spec
|spec
|constants=<div id="box">
|constants=<div id="box">
Line 54: Line 53:
|also_functions={{LSL DefineRow||[[llPassTouches]]}}
|also_functions={{LSL DefineRow||[[llPassTouches]]}}
|also_tests
|also_tests
|also_events
|also_events=
{{LSL DefineRow||[[touch_start]]}}
{{LSL DefineRow||[[touch_start]]}}
{{LSL DefineRow||[[touch]]}}
{{LSL DefineRow||[[touch]]}}

Revision as of 23:40, 8 March 2008

Summary

Function: llSetClickAction( integer action );
0.0 Forced Delay
10.0 Energy

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
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
CLICK_ACTION_BUY 2 When the prim is touched, the buy dialog is opened
CLICK_ACTION_PAY 3 When the prim is touched, the pay dialog is opened
CLICK_ACTION_OPEN 4 When the prim is touched, the object inventory dialog is opened
CLICK_ACTION_PLAY 5 When the prim is touched, html-on-a-prim is enabled?
CLICK_ACTION_OPEN_MEDIA 6 When the prim is touched, the web media dialog is opened

Examples

See Also

Events

•  touch_start
•  touch
•  touch_end

Functions

•  llPassTouches

Articles

•  Detected

Deep Notes

History

Introduced in SL 1.19.1(0)

Signature

function void llSetClickAction( integer action );