|
Jens Pacer
Registered User
Join date: 26 Mar 2005
Posts: 4
|
03-10-2006 00:16
Hi
If you have some linked objects, and you put some textures in the parent object, how can you change the texture of all or some of the child objects?
Regards
Jens
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
03-10-2006 03:38
Sadly there isn't an llSetLinkTexture() command. If you've got full perms to the texture so you can get it's key through llGetInventoryKey() (if you don't have full perms this should return null_key for a texture). You can then use llMessageLinked(LINK_SET, 0, "set texture", 'texture key'); to send the key around the objects. In each prim in the set you'll need a script that has something like: default { link_message(integer sender, integer num, string msg, key id) { llSetTexture(id, ALL_SIDES); } }
(it might not compile properly, although it should do, I can get to a compiler) Sadly there isn't a nicer way to do it yet.
|
|
Jens Pacer
Registered User
Join date: 26 Mar 2005
Posts: 4
|
Thanks
03-10-2006 06:12
THanks alot, it works great.  Jens
|