|
Cristos Benelli
Nuova Sicilia
Join date: 2 Mar 2007
Posts: 49
|
04-08-2007 12:47
Apologies in advance for my novice questions...
Building my first script ever, a pretty straight forward water on/off. Having two problems, one with the script and one with the prims.
On Prims: Need the prim to be 100% transparent to start, can't get it to go beyond 90% in the edit/texture tab.
On Script: How do I get it to apply to a set of linked objects? Its currently only applying to the prim root.
Best,
Cristos
|
|
Anti Antonelli
Deranged Toymaker
Join date: 25 Apr 2006
Posts: 1,091
|
04-08-2007 13:05
Hi Cristos. You can set the transparency of any prim with a script, all the way to 100%, and in fact apply it to all the linked prims as well. Here's what you'd use: llSetAlpha http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetAlphallSetLinkAlpha http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetLinkAlphaHope that helps some.
|
|
Ricky Yates
(searching...)
Join date: 28 Jan 2007
Posts: 809
|
04-08-2007 13:11
From: Cristos Benelli Apologies in advance for my novice questions...
Building my first script ever, a pretty straight forward water on/off. Having two problems, one with the script and one with the prims.
On Prims: Need the prim to be 100% transparent to start, can't get it to go beyond 90% in the edit/texture tab. No apologies needed. There are no stupid questions, just stupid answers. Actually, that one's easy: Use llSetAlpha(0.0, ALL_SIDES) in the on_rez event handler ... the function is pretty well described in the Wiki. From: Cristos Benelli On Script: How do I get it to apply to a set of linked objects? Its currently only applying to the prim root. I haven't used it myself, but llSetLinkAlpha() ought to do the trick ... details here. Quote: "This function allows setting an entire object in one call rather than being forced to use a for loop." Good luck!
|
|
Cristos Benelli
Nuova Sicilia
Join date: 2 Mar 2007
Posts: 49
|
04-08-2007 14:24
Anti, Ricky,
Thanks to both for responding, worked like a charm. Much appreciated!
Best,
Cristos
|
|
Cristos Benelli
Nuova Sicilia
Join date: 2 Mar 2007
Posts: 49
|
04-08-2007 14:33
Spoke to soon, LOL.
So the original stated problem is solved.
Now how do I link the linked water (on/off script embedded) to the tap without the script affecting the tap?
Best,
Cristos
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
04-08-2007 15:23
From: Cristos Benelli Spoke to soon, LOL.
So the original stated problem is solved.
Now how do I link the linked water (on/off script embedded) to the tap without the script affecting the tap?
Best,
Cristos Depending on how mnay prims in your tap. If teh tap is a single prim then rather than using LINK_SET use LINK_ALL_OTHERS and have the script in the tap. If the water is a single prim then just use its link number in the calls.
|