Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Managing "click-to-grab" and "click-to-sit" via script

Nava Muni
Registered User
Join date: 27 Dec 2006
Posts: 10
01-18-2007 09:07
I know that, while editing an object, you can change the default "left click" behavior from "click-to-grab" to "click-to-sit." I was wondering - can this property be altered via scripting? Can its current setting be queried?

I'm working on a generic "sit teleport" script. It's convenient to have the "click-to-sit" property set on the object but that doesn't seem the way to go if the teleport is configured (via contained notecard) to handle multiple destinations.

Here's the deal ...
With one destination, a simple "click-to-sit" is unambiguous. You just click 'n go.
However, if the teleport can handle several destinations, I need a way to present a menu (llDialog) to the avatar and handle the choice. Currently, I'm trying to intervene on the 1st "click-to-sit" click (by calling llUnSit). Then I present a menu, retarget the teleport based on the avatar's choice, then have the avatar click (to sit) again (with a reset timeout). Unfortunately, it's not working too well. So I figured, since my script is able to detect that it's been asked to manage multiple destinations, it could turn off "click-to-sit" (if the property's set), use touch() to present/manage a menu choice, then set "click-to-sit" after retargeting.

So ... any ideas on testing/setting default left-click behavior?
Elsewhere Essex
Registered User
Join date: 8 Sep 2006
Posts: 50
01-18-2007 09:51
unfortunately, no.
Mathew Frangilli
Registered User
Join date: 12 Jan 2007
Posts: 4
01-20-2007 01:34
how about emulating that by having two prims to click on. when you want to change from one to the other you just move prim so it sits in front of the other one.

at the start prim A is in front of prim B, and gets the clicks.

when you want to change the clickaction, prim B is moved in front of prim A and gets the clicks.

Cheers,
Mathew
Mandy Medusa
Registered User
Join date: 21 Jan 2007
Posts: 118
09-03-2008 12:55
Bumping this old thread... maybe some people using these search words can be helped (I searched and came here myself at first)

I discovered it IS possible now,

Using the llSetClickAction(CLICK_ACTION_SIT);
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
09-03-2008 12:59
I wish they would _tell_ us these things.
_____________________
http://ordinalmalaprop.com/forum/ - visit Ordinal's Scripting Colloquium for scripting discussion with actual working BBCode!

http://ordinalmalaprop.com/engine/ - An Engine Fit For My Proceeding, my Aethernet Journal

http://www.flickr.com/groups/slgriefbuild/ - Second Life Griefbuild Digest, pictures of horrible ad griefing and land spam, and the naming of names