Difference between revisions of "LlGetTextureOffset"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 9: Line 9:
|caveats
|caveats
|constants
|constants
|examples
|examples=<pre>
//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));
    }
}
</pre>
|helpers
|helpers
|also_functions
|also_functions

Revision as of 03:13, 14 December 2007

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 );