Difference between revisions of "LlOffsetTexture"

From Second Life Wiki
Jump to navigation Jump to search
Line 11: Line 11:
|caveats
|caveats
|constants
|constants
|examples
|examples=<pre>
//Offsets the textures on 6 sides
float offset;
default
{
    state_entry()
    {
        integer i;
       
        for( i = 1; i < 7; i++ )
        {
            offset = offset + .1;
            llOffsetTexture( (float)offset, (float)offset, i);
        }
    }
}
</pre>
|helpers
|helpers
|also_functions
|also_functions

Revision as of 05:23, 14 December 2007

Summary

Function: llOffsetTexture( float u, float v, integer face );

Sets the texture u & v offsets for the chosen face

• float u
• float v
• integer face face number or ALL_SIDES

If face is ALL_SIDES then the function works on all sides.

Caveats

  • This function causes the script to sleep for 0.2 seconds.
  • The function silently fails if its face value indicates a face that does not exist.
All Issues ~ Search JIRA for related Bugs

Examples

//Offsets the textures on 6 sides
float offset;
default
{
    state_entry()
    {
        integer i;
        
        for( i = 1; i < 7; i++ )
        {
            offset = offset + .1;
            llOffsetTexture( (float)offset, (float)offset, i);
        }
    }
}

Deep Notes

Search JIRA for related Issues

Signature

function void llOffsetTexture( float u, float v, integer face );