|
Cookie Bertone
Music & Audio
Join date: 13 May 2006
Posts: 13
|
03-29-2008 03:18
Hello, Despite my best efforts I have failed to understand any of the previous posts regarding changing the colour of one object in a set of linked prims.
My problem is this. I have three prims that are linked together. Within those prims is a single script. I want to be able to change the colour of one of those three prims if a certain point is reached in the script. I only need to choose from two or three colours so no fancy 'choose what colour you want' routine is needed just a very basic 'Set Prim X to Colour Y'.
Can anybody help?
Thanks in advance.
|
|
Pale Spectre
Registered User
Join date: 2 Sep 2005
Posts: 586
|
03-29-2008 03:32
Here's an example to set all sides of the second linked prim to red: llSetLinkColor(2, <1.0, 0.0, 0.0>, ALL_SIDES); About llSetLinkColor:  About links:  About colours:  About sides: 
|
|
Galena Qi
Registered User
Join date: 9 Sep 2006
Posts: 249
|
03-30-2008 12:02
I recommend the NCI Scripting class on Object Communication. They include several examples of color-changing scripts using the llMessageLinked commands, which another way to do this.
|
|
Cookie Bertone
Music & Audio
Join date: 13 May 2006
Posts: 13
|
Sorted
03-30-2008 21:34
Many thanks to you both.
Pale - This is what I needed, thanks. It works perfectly.
Galena - I look into these this week. Thanks for the pointer.
|