# llGetTextureRot

*LSL function*

```lsl
float float llGetTextureRot(integer face);
```

- `integer face`: Face number or ALL_SIDES.

- Returns: `float`
- Energy: 10

Returns a float representing the texture rotation angle (in radians) on face.

Returns a [float](https://wiki.secondlife.com/wiki/float) that is the texture rotation, expressed as an `angle`, on **face**

```lsl title="How to use" frame="terminal"
float result = llGetTextureRot(0);
```

## Examples

<details open>
<summary>Example 1</summary>

```lsl
//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;
        }
    }
}
```

</details>

## See also

### Functions

- [llRotateTexture](/functions/llRotateTexture/)
- [llGetNumberOfSides](/functions/llGetNumberOfSides/)

---

*Source: [LlGetTextureRot](https://wiki.secondlife.com/wiki/LlGetTextureRot) on the Second Life Wiki. Content from the Second Life Wiki articles LlGetTextureRot (revision 1194269, 2015-01-22), Template:LSL Function/face (revision 1175878, 2013-01-06) and Template:LSL Function/angle (revision 1169077, 2012-06-13), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llGetTextureRot/
