|
Yumi Murakami
DoIt!AttachTheEarOfACat!
Join date: 27 Sep 2005
Posts: 6,860
|
02-22-2006 16:22
Is there any way to make an object where some parts are touchable and others are not, which at the same time uses llDetectedLinkNumber() to cut down the number of scripts in the object?
It seems not, since llDetectedLinkNumber() requires there to be a touch_start in the parent prim which then sets the entire object touchable, but I might be missing something?
|
|
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
|
02-22-2006 16:28
By 'not touchable' you mean the mouse pointer should change back from the 'touch hand' if it's over the other prims? Because you can always ignore a touch on a prim you're not interested in, so that's a 'not touchable' prim in some sense, but I'm guessing that's not going to work for you.
|
|
Ares Desmoulins
Registered User
Join date: 13 Sep 2005
Posts: 22
|
02-22-2006 22:22
if you use llDetectedLinkNumber(), you only need one script in the entire linkset
|
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
02-23-2006 03:34
You can always put individual touch scripts in child prims, have no touch scripts in the root prim, and have the children react to being touched by sending link messages to the main script.
|
|
Yumi Murakami
DoIt!AttachTheEarOfACat!
Join date: 27 Sep 2005
Posts: 6,860
|
02-23-2006 03:59
From: Ordinal Malaprop You can always put individual touch scripts in child prims, have no touch scripts in the root prim, and have the children react to being touched by sending link messages to the main script. I know that, but that means a running script in every touch point. I'd like to be able to have a single script for dealing with all the touches, without causing the mouse cursor to switch to a hand in locations where it isn't in fact useful to touch the obect.
|
|
Ben Bacon
Registered User
Join date: 14 Jul 2005
Posts: 809
|
02-23-2006 05:09
Total shot in the dark here - and I'm not in-world to test - but maaaaaybeee: Create a script in every touchable child prim - make sure it calls llPassTouches(TRUE) to pass touches up to the parent - make sure it has a touch event to trigger the hand icon - and then stop the scripts (manually, or through a call to llSetScriptState in each one) to eliminate their lag. Probably won't work - and even if it does be prepared to for it to stop working at any time - but it would be interesting to know.
|