LlGetTextureRot - Second Life Wiki

LlGetTextureRot

From Second Life Wiki

(Redirected from LSL llGetTextureRot)
Jump to: navigation, search

Contents

Description

Function: float llGetTextureRot( integer side );
180 Function ID
0.0 Delay
10.0 Energy

Returns a float that is the texture rotation of side

• integer side face number or ALL_SIDES


If side is ALL_SIDES then the function works on all sides.

Caveats

  • The function silently fails if its side value indicates a face that does not exist

Examples

//Tells the owner the texture rotation on all sides
default
{
    state_entry()
    {
        integer i = 0;
        integer max = llGetNumberOfSides();
        while(i < max)
        {
            llSay(0,"Face "+(string)i+" texture rotation is " + (string)llGetTextureRot(i));
            ++i;
        }
    }
}

See Also

Functions

•  llRotateTexture
•  llGetNumberOfSides