LlSetClickAction

From Second Life Wiki

Jump to: navigation, search

Function: llSetClickAction( integer action );

333 Function ID
0.0 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 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 Image:Toolsit.png‎
CLICK_ACTION_BUY 2 When the prim is touched, the buy dialog is opened Image:Toolbuy.png
CLICK_ACTION_PAY 3 When the prim is touched, the pay dialog is opened Image:Toolpay.png
CLICK_ACTION_OPEN 4 When the prim is touched, the object inventory dialog is opened Image:Toolopen.png
CLICK_ACTION_PLAY 5 When the prim is touched, html-on-a-prim is enabled? Image:Toolplay.png
CLICK_ACTION_OPEN_MEDIA 6 When the prim is touched, the web media dialog is opened Image:Toolmediaopen.png

Examples

See Also

Events

•  touch_start
•  touch
•  touch_end

Functions

•  llPassTouches

Articles

•  Detected

History

Introduced in SL 1.19.1(0)

Personal tools