llSetTexture
void llSetTexture(string Texture, integer Face)Applies Texture to Face of prim.
Texture may be a UUID or name of a texture in prim inventory.
If Face is ALL_SIDES, set the texture on all faces.
Parameters
-
Texture(string) -
Face(integer)
default{ state_entry() { // the first texture alphabetically inside the same prim's inventory string texture = llGetInventoryName(INVENTORY_TEXTURE, 0);
// set it on all sides of the prim containing the script llSetTexture(texture, ALL_SIDES); }}Caveats
Section titled “Caveats”- Inspect does not show texture information (unlike some other properties like creator)
See Also
Section titled “See Also”- llSetLinkTexture
- llGetTexture
- llSetPrimitiveParams
- llSetLinkPrimitiveParams
- Internal Textures