|
Drezin Drago
Registered User
Join date: 21 Aug 2004
Posts: 23
|
02-17-2006 08:57
Hi all,
I had a quick question to know if this is even possible in SL. I need a script for my fountains that are in two pieces. Each piece comes with an Aligntment Ball so that when you place it all you do is line up the ball and everything is lined up. The script I need is to make the anlignment ball dissapear once the item is placed. Either by touch or a command. (Along the same lines as pose balls hiding when not in use)
Can this be done if the aligntment ball is linked to both pieces of the fountain? Or would the user have to unlink that ball and then click it to hide it ??
Basically is there a script out there that can hide a prim (set alpha) when it is linked to a whole link set? Just the one prim not the whole link set?
Thanks for any help
Drezin Drago
|
|
MeLight Korvin
Im on da Use
Join date: 4 Jun 2005
Posts: 99
|
02-17-2006 09:04
yeah, you should either place a script in the prim itself (llSetAlpha) or set its alpha with llSetLinkAlpha
_____________________
Boobs are remote controls for the male brain. Lemmie push some buttons!!!
|
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
02-17-2006 09:05
It's actually far harder (or more annoying) to make all of the prims in an object transparent than it is to make just one transparent. Try this - put it in the ball prim itself, not the root prim, you may need to check "Edit Linked Parts" to do that: default { touch_start(integer n) { if (llDetectedKey(0) == llGetOwner()) { if (llGetAlpha(ALL_SIDES)) llSetAlpha(0.0, ALL_SIDES); else llSetAlpha(1.0, ALL_SIDES); } } }
That will let the owner toggle the alpha by touching the ball.
|
|
Drezin Drago
Registered User
Join date: 21 Aug 2004
Posts: 23
|
Thanks!
02-17-2006 10:44
Thanks Ordinal and Mel will try it out !
|