Skip to content
lsl.devlsl.devLSL Dev

llGetTextureRot

function
Function syntax
float llGetTextureRot(
  1. integer face// Face number or ALL_SIDES. Values: Faces
);
Returns
float
Energy
10

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

Returns a float that is the texture rotation, expressed as an angle, on face

How to use
float result = llGetTextureRot(0);
Example 1
//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;
}
}
}
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.