Difference between revisions of "LlGetTextureRot"

From Second Life Wiki
Jump to navigation Jump to search
(Return value clarified to match llRotateTexture.)
m (<lsl> tag to <source>)
 
Line 11: Line 11:
|caveats
|caveats
|constants
|constants
|examples=<lsl>//Tells the owner the texture rotation on all sides
|examples=<source lang="lsl2">//Tells the owner the texture rotation on all sides
default
default
{
{
Line 24: Line 24:
         }
         }
     }
     }
}</lsl>
}</source>
|helpers
|helpers
|also_functions={{LSL DefineRow||[[llRotateTexture]]|}}
|also_functions={{LSL DefineRow||[[llRotateTexture]]|}}

Latest revision as of 03:02, 22 January 2015

Summary

Function: float llGetTextureRot( integer face );

Returns a float that is the texture rotation, expressed as an angle, on face

• integer face face number or ALL_SIDES

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

Caveats

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

Examples

//Tells the owner the texture rotation on all sides
default
{
    state_entry()
    {
        integer i = 0;
        integer max = llGetNumberOfSides();
        while(i < max)
        {
            llSay(0,"Face "+(string)i+" texture rotation is " + (string)llGetTextureRot(i));
            ++i;
        }
    }
}

See Also

Functions

•  llRotateTexture
•  llGetNumberOfSides

Deep Notes

Search JIRA for related Issues

Signature

function float llGetTextureRot( integer face );