Skip to content
lsl.devlsl.devLSL Dev

Constants in the ClickAction enum.

All constant groups

At a glance, from the LSL definitions
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

ConstantTypeValueDescription
CLICK_ACTION_BUYinteger2Opens the buy dialog when the prim is clicked or touched.
CLICK_ACTION_DISABLEDinteger8Disables click actions. No touches are detected or passed.
CLICK_ACTION_IGNOREinteger9Disables click actions. Clicks pass through the object to whatever is behind it, and no touches are detected.
CLICK_ACTION_NONEinteger0Performs the default action: triggers touch events when the prim is clicked or touched.
CLICK_ACTION_OPENinteger4Opens the object inventory dialog when the prim is clicked or touched.
CLICK_ACTION_OPEN_MEDIAinteger6Opens the web media dialog or plays parcel media (without pausing) when the prim is touched.
CLICK_ACTION_PAYinteger3Opens the pay dialog when the prim is clicked or touched.
CLICK_ACTION_PLAYinteger5Enables HTML-on-a-prim or plays/pauses parcel media when the prim is clicked or touched.
CLICK_ACTION_SITinteger1Causes the avatar to sit on the prim when it is clicked or touched.
CLICK_ACTION_TOUCHinteger0Triggers touch events when the prim is clicked or touched.
CLICK_ACTION_ZOOMinteger7Zooms the avatar camera in on the object (Viewer 2) when clicked or touched.

Used by