Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Create custom pie chart option

PoweRoy Wrigglesworth
Registered User
Join date: 16 Feb 2009
Posts: 2
02-17-2009 04:57
Im trying to create a custum pie chart option.
I can use the Sit option (change text with llSetSitText) but how can i disable the ability to sit on it. Or is there any other way to create a custom pie chart option?
Pavcules Superior
Registered User
Join date: 30 Oct 2006
Posts: 69
02-17-2009 05:27
You could try the "llSetTouchText" function which replaces the "Touch" word in the pie menu.
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
02-17-2009 05:43
I'm afraid there's no way to disable the sit option, because avatars can *try* to sit on pretty much anything. However, you can set a sit target, and when the "change" event is raised with the CHANGED_LINK flag, you can check to see if an avatar is on the sit target. If so, you can unsit them.
PoweRoy Wrigglesworth
Registered User
Join date: 16 Feb 2009
Posts: 2
02-17-2009 05:49
From: Pedro McMillan
I'm afraid there's no way to disable the sit option, because avatars can *try* to sit on pretty much anything. However, you can set a sit target, and when the "change" event is raised with the CHANGED_LINK flag, you can check to see if an avatar is on the sit target. If so, you can unsit them.


problem is that the avatar is walking to it and sit on it. This case its a lamp...

I know implemented single/double click to have 2 sperate functions.
Cheree Bury
ChereeMotion Owner
Join date: 6 Jun 2007
Posts: 666
02-17-2009 06:10
llSitTarget(ZERO_VECTOR,ZERO_ROTATION);


will disable the ability to sit on an item.
_____________________
Visit ChereeMotion - Life's Best Pinup Poses
http://slurl.com/secondlife/Wild%20Rice/38/230/51
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
02-17-2009 06:12
I'm afraid that only disables the sit target -- avatars can still sit on things without sit targets, except it will be unpredictable.
Cheree Bury
ChereeMotion Owner
Join date: 6 Jun 2007
Posts: 666
02-17-2009 07:11
From: Pedro McMillan
I'm afraid that only disables the sit target -- avatars can still sit on things without sit targets, except it will be unpredictable.


Well, you seem to be correct. I went in-world and tested it. Did this change at some point? I am sure I have done this in the past, and the Wiki still states that this is how to do it.
_____________________
Visit ChereeMotion - Life's Best Pinup Poses
http://slurl.com/secondlife/Wild%20Rice/38/230/51
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
02-17-2009 09:51
I'm pretty sure it's been that way for as long as I have been using SL (a couple of years now).
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
02-17-2009 12:14
Yes, you can sit on things without sit targets. Sometimes the geometry of the object can make it very difficult or impossible though, as SL tries to find a spot where you will "fit". Don't ask me how they decide where and whether you can fit; it doesn't always make much sense.

The double-click option is a good one. I've used that lots myself when it is a simple function (e.g. "Double-click this object to delete it...";).