Syntax

string llGetTexture( integer face );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

integer face
face number or ALL_SIDES

If face is ALL_SIDES then the function returns the value for face zero.

If the texture is in the prim's inventory, the return value is the inventory name, otherwise the returned value is the texture UUID.

Return value

Returns a string that is the Blinn-Phong diffuse texture on face

Caveats

Examples

//Tells (on chat) the texture keys / texture names on 6 sides
default
{
    state_entry()
    {
        integer i = 0;
        integer max = llGetNumberOfSides();
        while(i < max)
        {
            llSay(0,"Side " + (string)i + " texture is: " + (string)llGetTexture(i));
            ++i;
        }
    }
}

See also

Functions

Deep notes

History