Texture changes

Stickman stickman at gmail.com
Thu Feb 26 15:42:55 PST 2009

> But llSetLinkTexture has a 0.2s delay each time. If you can afford to wait

llSetTexture() has an 0.2s delay, as well.

If you're changing ALL prims, llSetLinkTexture(LINK_SET, ...) will
change all textures on all prims in the object. A 0.2s delay once, one
script in the root, all done.

If you're changing just a few prims, then you'll have a delay of
prim*0.2s, which you can split in half by adding another script that
uses llSetLinkTexture() on half the objects. This allows you to keep
all the scripts in the root so you can manage them easily without
digging through the prims in the object.

A one second delay (five prims) would be plenty fine in my book for a
furniture change. A two second delay (10 prims) would be pushing it.
If you've got 20 prims, which is a lot for a piece of furniture, you
can put two scripts in and cut it down to two seconds.

Hope that helped some.


More information about the secondlifescripters mailing list