Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Need Help

Tara Bournemouth
Registered User
Join date: 9 Oct 2006
Posts: 21
09-06-2007 17:15
hi, can you make a script to make a prim go transparent on a timed event? I have 5 prims -5 peices to make a pipe and i want it to gradually dissapear.. each prim at a time ...so i timed the peices to die but when you link it it all dissapears and wont work individually..


-- i was doing it like deleting each prim one at a time.. it works if its all unlinked of course but i want to be able to attach this pipe to an avie.. and it wont allow unlinked objects to attach
-
- what you wanna do is this?
- setup a listen
-each prim has a script
- that communicated with the main
-on rez sends a message to each tuber
-each tube has a timer 1 being 5
- second being 10
- 3rd being 15
- and setprimparms
- to alpha
- 100
- in timer make it set 10 opacity
-120
- 30
- 40
- 50
-: and so on
- in 5 secons
-the 2nd will fade in 10
- so it will give a fading effect smoothly
Rusty Satyr
Meadow Mythfit
Join date: 19 Feb 2004
Posts: 610
09-06-2007 17:18
Look up llSetLinkAlpha() =)

Something LIKE:

default {
state_entry() {

integer i = llGetNumberOfObjects(); // can't remember this exactly...
float d;

while ( i > 1 ) {
for (d=1.0; d>=0.0; d-=0.1 ) {
llSetLinkAlpha( ALL_SIDES, i, d);
i--;
}
}

}
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
09-06-2007 17:21
http://wiki.secondlife.com/wiki/LlSetAlpha
http://wiki.secondlife.com/wiki/LlSetLinkAlpha

Shouldn't this be in Scripting Tips, not Buliding Tips? Please post in appropriate forums only. Thanks.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.