Skip to content
lsl.devlsl.devLSL Dev

llGetTextureOffset

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

Returns a vector that is the texture offset of face in the x (“U”, horizontal) and y (“V”, vertical) components. The z component is unused.

How to use
vector result = llGetTextureOffset(0);
Example 1
//Tells the owner the texture offset on all sides
default
{
state_entry()
{
integer i = 0;
integer max = llGetNumberOfSides();
while(i < max)
{
llSay(0,"Face "+(string)i+" texture offset is " + (string)llGetTextureOffset(i));
++i;
}
}
}
Example 2
vector offsetVec = llGetTextureOffset(0);
float u = offsetVec.x;
float v = offsetVec.y;
// z is not used.
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.