|
Oberon Onmura
Registered User
Join date: 28 Dec 2006
Posts: 125
|
12-15-2008 06:24
Hi all -
I need to get all 17 pieces of a linked object to fade away to invisible at the same time. It looks like using the link_message event is what I need, but I'm not clear at all how it works. Is it like a listen event?
Any hints would be most appreciated!
|
|
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
|
12-15-2008 06:33
You can use "llSetLinkAlpha" to set the alpha of all prims in the object at the same time, like this: llSetLinkAlpha(LINK_SET, ALL_SIDES, alpha);
The "alpha" value should be a floating-point number, between 0.0 (totally transparent) and 1.0 (totally opaque). You call it several times in a row with different alpha values to achieve a kind of fade effect, although you probably can't really make the object fade very smoothly.
|
|
Oberon Onmura
Registered User
Join date: 28 Dec 2006
Posts: 125
|
12-15-2008 07:04
From: Pedro McMillan You can use "llSetLinkAlpha" to set the alpha of all prims in the object at the same time, like this: llSetLinkAlpha(LINK_SET, ALL_SIDES, alpha);
Oh wow! I didn't even know about this function. Thanks so much. I'll try it!
|
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
12-15-2008 07:09
 just use that script but apply the llSetLinkAlpha function in place of llSetAlpha
|