llGetTextureOffset

From Second Life Wiki
Revision as of 03:13, 14 December 2007 by Charlie Omega (talk | contribs)
Jump to navigation Jump to search

Summary

Function: vector llGetTextureOffset( integer face );
0.0 Forced Delay
10.0 Energy

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>

Examples

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

Deep Notes

Signature

function vector llGetTextureOffset( integer face );