ClickAction
Constants in the ClickAction enum.
integer CLICK_ACTION_BUY = 2; // Opens the buy dialog when the prim is clicked or touched.integer CLICK_ACTION_DISABLED = 8; // Disables click actions.integer CLICK_ACTION_IGNORE = 9; // Disables click actions.integer CLICK_ACTION_NONE = 0; // Performs the default action: triggers touch events when the prim is clicked or touched.integer CLICK_ACTION_OPEN = 4; // Opens the object inventory dialog when the prim is clicked or touched.integer CLICK_ACTION_OPEN_MEDIA = 6; // Opens the web media dialog or plays parcel media (without pausing) when the prim is touched.integer CLICK_ACTION_PAY = 3; // Opens the pay dialog when the prim is clicked or touched.integer CLICK_ACTION_PLAY = 5; // Enables HTML-on-a-prim or plays/pauses parcel media when the prim is clicked or touched.integer CLICK_ACTION_SIT = 1; // Causes the avatar to sit on the prim when it is clicked or touched.integer CLICK_ACTION_TOUCH = 0; // Triggers touch events when the prim is clicked or touched.integer CLICK_ACTION_ZOOM = 7; // Zooms the avatar camera in on the object (Viewer 2) when clicked or touched.
Constants
| Constant | Type | Value | Description |
|---|---|---|---|
CLICK_ACTION_BUY | integer | 2 | Opens the buy dialog when the prim is clicked or touched. |
CLICK_ACTION_DISABLED | integer | 8 | Disables click actions. No touches are detected or passed. |
CLICK_ACTION_IGNORE | integer | 9 | Disables click actions. Clicks pass through the object to whatever is behind it, and no touches are detected. |
CLICK_ACTION_NONE | integer | 0 | Performs the default action: triggers touch events when the prim is clicked or touched. |
CLICK_ACTION_OPEN | integer | 4 | Opens the object inventory dialog when the prim is clicked or touched. |
CLICK_ACTION_OPEN_MEDIA | integer | 6 | Opens the web media dialog or plays parcel media (without pausing) when the prim is touched. |
CLICK_ACTION_PAY | integer | 3 | Opens the pay dialog when the prim is clicked or touched. |
CLICK_ACTION_PLAY | integer | 5 | Enables HTML-on-a-prim or plays/pauses parcel media when the prim is clicked or touched. |
CLICK_ACTION_SIT | integer | 1 | Causes the avatar to sit on the prim when it is clicked or touched. |
CLICK_ACTION_TOUCH | integer | 0 | Triggers touch events when the prim is clicked or touched. |
CLICK_ACTION_ZOOM | integer | 7 | Zooms the avatar camera in on the object (Viewer 2) when clicked or touched. |
Used by
llSetClickActionfunctionSets the action (a CLICK_ACTION_* flag) performed when an avatar left-clicks the prim.