Difference between revisions of "LlGetTextureOffset"

From Second Life Wiki
Jump to navigation Jump to search
Line 16: Line 16:
     {
     {
         integer i;
         integer i;
         for( i = 1; i < 8; i++ )
         for( i = 1; i < 7; i++ )
         llSay(0,"Side " + (string)i + " texture offset is: " + (string)llGetTextureOffset(i));
         llSay(0,"Side " + (string)i + " texture offset is: " + (string)llGetTextureOffset(i));
     }
     }

Revision as of 04:13, 14 December 2007

Summary

Function: vector llGetTextureOffset( integer face );

Returns a vector that is the texture offset of face in the x and y components

• integer face face number or ALL_SIDES

If face is ALL_SIDES then the function as if on face zero.

Caveats

  • If face indicates a face that does not exist the return is <0.0, 0.0, 0.0>
All Issues ~ Search JIRA for related Bugs

Examples

//Tells the owner the texture offset on 6 sides
default
{
    state_entry()
    {
        integer i;
        for( i = 1; i < 7; i++ )
        llSay(0,"Side " + (string)i + " texture offset is: " + (string)llGetTextureOffset(i));
    }
}

Deep Notes

Search JIRA for related Issues

Signature

function vector llGetTextureOffset( integer face );