Difference between revisions of "LlSetClickAction"

From Second Life Wiki
Jump to navigation Jump to search
(New page: {{LSL_Function |func_id=333|func_sleep=0.0|func_energy=10.0 |func=llSetClickAction |p1_type=integer|p1_name=action|p1_desc=CLICK_ACTION_* flag |func_desc=Sets the action performed when a p...)
 
Line 3: Line 3:
|func=llSetClickAction
|func=llSetClickAction
|p1_type=integer|p1_name=action|p1_desc=CLICK_ACTION_* flag
|p1_type=integer|p1_name=action|p1_desc=CLICK_ACTION_* flag
|func_desc=Sets the action performed when a prim is clicked upon.
|func_desc=Sets the action performed when a prim is clicked upon. When the cursor is hovered over the prim the cursor image changes to reflect the action.
|func_footnote
|func_footnote
|caveats=
|caveats=
Line 20: Line 20:
{{!}}{{LSL Const|CLICK_ACTION_NONE|integer|0|c=Performs the default action: when the prim is touched, touch events are triggered}}
{{!}}{{LSL Const|CLICK_ACTION_NONE|integer|0|c=Performs the default action: when the prim is touched, touch events are triggered}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:desc}}
{{!}}{{#var:comment}}
{{!}}-
{{!}}-
{{!}}{{LSL Const|CLICK_ACTION_TOUCH|integer|0|c=When the prim is touched, touch events are triggered}}
{{!}}{{LSL Const|CLICK_ACTION_TOUCH|integer|0|c=When the prim is touched, touch events are triggered}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:desc}}
{{!}}{{#var:comment}}
{{!}}-
{{!}}-
{{!}}{{LSL Const|CLICK_ACTION_SIT|integer|1|c=When the prim is touched, the avatar sits upon it}}
{{!}}{{LSL Const|CLICK_ACTION_SIT|integer|1|c=When the prim is touched, the avatar sits upon it}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:desc}}
{{!}}{{#var:comment}}
{{!}}-
{{!}}-
{{!}}{{LSL Const|CLICK_ACTION_BUY|integer|2|c=When the prim is touched, the buy dialog is opened}}
{{!}}{{LSL Const|CLICK_ACTION_BUY|integer|2|c=When the prim is touched, the buy dialog is opened}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:desc}}
{{!}}{{#var:comment}}
{{!}}-
{{!}}-
{{!}}{{LSL Const|CLICK_ACTION_PAY|integer|3|c=When the prim is touched, the pay dialog is opened}}
{{!}}{{LSL Const|CLICK_ACTION_PAY|integer|3|c=When the prim is touched, the pay dialog is opened}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:desc}}
{{!}}{{#var:comment}}
{{!}}-
{{!}}-
{{!}}{{LSL Const|CLICK_ACTION_OPEN|integer|4|c=When the prim is touched, the object inventory dialog is opened}}
{{!}}{{LSL Const|CLICK_ACTION_OPEN|integer|4|c=When the prim is touched, the object inventory dialog is opened}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:desc}}
{{!}}{{#var:comment}}
{{!}}-
{{!}}-
{{!}}{{LSL Const|CLICK_ACTION_PLAY|integer|5|c=When the prim is touched, html-on-a-prim is enabled?}}
{{!}}{{LSL Const|CLICK_ACTION_PLAY|integer|5|c=When the prim is touched, html-on-a-prim is enabled?}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:desc}}
{{!}}{{#var:comment}}
{{!}}-
{{!}}-
{{!}}{{LSL Const|CLICK_ACTION_OPEN_MEDIA|integer|5|c=When the prim is touched, the web media dialog is opened}}
{{!}}{{LSL Const|CLICK_ACTION_OPEN_MEDIA|integer|6|c=When the prim is touched, the web media dialog is opened}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:desc}}
{{!}}{{#var:comment}}
{{!}}}
{{!}}}
</div></div>
</div></div>

Revision as of 23:38, 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. When the cursor is hovered over the prim the cursor image changes to reflect the action.

• integer action CLICK_ACTION_* flag

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

<lsl></lsl>

See Also

Functions

•  llPassTouches

Articles

•  Detected

Deep Notes

History

Introduced in SL 1.19.1(0)

Signature

function void llSetClickAction( integer action );