Difference between revisions of "LlGetTextureRot"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 10: Line 10:
|caveats
|caveats
|constants
|constants
|examples=<pre>
|examples=<lsl>//Tells the owner the texture rotation on all sides
//Tells the owner the texture rotation on 6 sides
default
default
{
{
     state_entry()
     state_entry()
     {
     {
         integer i;
         integer i = 0;
         for( i = 1; i < 7; i++ )
         integer max = llGetNumberOfSides();
         llSay(0,"Side " + (string)i + " texture rotation is: " + (string)llGetTextureRot(i));
        while(i < max)
         {
            llSay(0,"Face "+(string)i+" texture rotation is " + (string)llGetTextureRot(i));
            ++i;
        }
     }
     }
}
}</lsl>
</pre>
|helpers
|helpers
|also_functions
|also_functions={{LSL DefineRow||[[llRotateTexture]]|}}
{{LSL DefineRow||[[llGetNumberOfSides]]|}}
|also_tests
|also_tests
|also_events
|also_events

Revision as of 07:02, 14 December 2007

Summary

Function: float llGetTextureRot( integer side );

Returns a float that is the texture rotation of side

• integer side face number or ALL_SIDES

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

Caveats

  • The function silently fails if its side value indicates a face that does not exist.
All Issues ~ Search JIRA for related Bugs

Examples

<lsl>//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;
       }
   }
}</lsl>

See Also

Functions

•  llRotateTexture
•  llGetNumberOfSides

Deep Notes

Search JIRA for related Issues

Signature

function float llGetTextureRot( integer side );