llSetTexture
function
Function syntax
llSetTexture(string texture,// Name of a texture in the prim's inventory, or a UUID.integer face// Face number orALL_SIDES. Values: Faces
);- Delay
- 0.2 s
- Energy
- 10
Applies the Blinn-Phong diffuse texture to face of the prim.
Sets the Blinn-Phong diffuse texture of this prim’s face.
llSetTexture("", 0);Caveats
Section titled “Caveats”Examples
Section titled “Examples”Example 1
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); }}Known issues
Section titled “Known issues”From the issue templates included by the wiki article:
- SVC-914 (bug): CHANGED_TEXTURE is not triggered when texture is changed via script
See also
Section titled “See also”Functions
Section titled “Functions”Articles
Section titled “Articles”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.