llGetTextureRot

From Second Life Wiki
Revision as of 10:37, 14 December 2013 by LepreKhaun Resident (talk | contribs) (Return value clarified to match llRotateTexture.)
Jump to navigation Jump to search

Summary

Function: float llGetTextureRot( integer face );
0.0 Forced Delay
10.0 Energy

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

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

Signature

function float llGetTextureRot( integer face );