Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Changing the texture on a face in a linked set

Rock Ryder
Registered User
Join date: 6 Oct 2006
Posts: 384
09-18-2007 09:33
Hi guys,

I have two prims that are linked. In the root prim is a script, and when the set is touched the script in the root prim causes a menu to display. What I am trying to do next is to make a certain face of the second prim in the linked set change texture in response to a menu selection from the script in the root prim.

Is this possible? Any pointers how best this could be achieved?

TIA

Rock
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
09-18-2007 09:41
The Wiki helps :)

http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetLinkTexture

(I assume, you know how to retrieve the answer from the menu... )
Rock Ryder
Registered User
Join date: 6 Oct 2006
Posts: 384
09-18-2007 10:37
OK guys, I have it now.

llMessageLinked command in the root prim script, passing the texture to change in the str

link_message receiver in the prim to be changed, taking the str and giving it to
llSetTexture

btw. It seems whenever I get stuck, (brain stuck in neutral), and post a question in this forum, I find that while waiting and browsing the wiki more, the answer jumps out at me.

I can only think is is because I am less stressed after posting a request for guidance (as I am always confident of getting the answer here, even if it is 'you can't do that'), and my brain starts functioning again. Does anyone else find this?

Rock
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
09-19-2007 00:23
your approach using llMessageLinked and a second script in the child prim is pretty much obsolete.

Like Haruki suggested you may want to take a look at llSetLinktexture.
Katryna Jie
Registered User
Join date: 24 Jun 2007
Posts: 187
09-19-2007 00:45
Yes, I agree. I was told here a few days ago to use llSetLinkColor and llSetLinkAlpha... they worked a treat. While I haven't used them for my big (as in detailed, not size big) build - I've used it to create a little studio corner for when I'm building.