Difference between revisions of "LlGetTextureRot"

From Second Life Wiki
Jump to: navigation, search
m
m
Line 32: Line 32:
 
|notes
 
|notes
 
|cat1=Texture
 
|cat1=Texture
|cat2
+
|cat2=Face
 
|cat3
 
|cat3
 
|cat4
 
|cat4
 
}}
 
}}

Revision as of 08:13, 3 February 2010

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