Don't click here unless you want to be banned.

LSL Wiki : llSetLinkColor

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl423.us.archive.org
llSetLinkColor(integer linknumber, vector color, integer face)

Sets the color on one or more sides (faces) of a linked prim. color is an RGB value between <0.0, 0.0, 0.0> and <1.0, 1.0, 1.0>.

If face == ALL_SIDES, sets color on all faces of the specified prim(s). If linknumber == LINK_SET (other link constants), sets color on all prims in the link set. This allows setting an entire object in one call rather than being forced to use a for loop.

There is no "llGetLinkColor" function. For that, use llGetColor in the specific prim.

Q: How do I determine which side of an object this applies to?
A: See side.

Q: How can this apply to multiple prims with a single call? I want to do this to the function's prim AND 1 or more other prims--but not ALL child prims OR necessarily the root prim. The link constants don't allow multiple, specific link numbers.
A: It is impossible with the current LSL featureset, unless you put scripts in the linked primitives you want to change.

To set the color of the current prim by itself, use llSetColor (though llSetLinkColor will still work).
To set the alpha of other prims in the object, use llSetLinkAlpha.
To set the texture of other prims in the object, use llSetLinkTexture.


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Link | Color
Comments [Hide comments/form]
BW, leave llSetLinkTexture linked, please; it's for REFERENCE (like llSetMass). Sheesh...
-- EepQuirk (2005-08-17 11:27:02)
What kind of reference is non-data?
-- IceBrodie (2005-08-18 01:24:14)
Attach a comment to this page: