vector llGetTextureOffset( integer face );
Forced delay: 0.0 seconds. Energy: 10.0.
If face is ALL_SIDES then the function returns the value for face zero.
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.
//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;
}
}
}
vector offsetVec = llGetTextureOffset(0);
float u = offsetVec.x;
float v = offsetVec.y;
// z is not used.