PRIM CLICK ACTION: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Frionil Fang (talk | contribs)
Created page with "{{LSL Constant |name=PRIM_CLICK_ACTION |type=integer |value=43 |desc=Which action will be taken when left-clicking the prim. Followed by one of these flags: {{LSL Constants/Cl..."
 
Lou Netizen (talk | contribs)
m Pointed to llSetClickAction for caveats
 
Line 5: Line 5:
|desc=Which action will be taken when left-clicking the prim. Followed by one of these flags:
|desc=Which action will be taken when left-clicking the prim. Followed by one of these flags:
{{LSL Constants/ClickAction}}
{{LSL Constants/ClickAction}}
|caveats=
* The caveats described at [[llSetClickAction#Caveats||llSetClickAction]] all apply to PRIM_CLICK_ACTION.
|functions=
|functions=
{{LSL DefineRow||[[llSetPrimitiveParams]]|}}
{{LSL DefineRow||[[llSetPrimitiveParams]]|}}

Latest revision as of 15:14, 20 May 2025

Description

Constant: integer PRIM_CLICK_ACTION = 43;

The integer constant PRIM_CLICK_ACTION has the value 43

Which action will be taken when left-clicking the prim. Followed by one of these flags:

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
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 Play or pause parcel media on touch
CLICK_ACTION_OPEN_MEDIA 6 Play parcel media on touch, no pause
CLICK_ACTION_ZOOM 7 Zoom the avatar camera on this object (Viewer 2)
CLICK_ACTION_DISABLED 8 No click action. No touches detected or passed.
CLICK_ACTION_IGNORE 9 Clicks go through the object to whatever is behind it. No touches detected.

Caveats


Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_CLICK_ACTION = 43;