Difference between revisions of "LlGetTextureRot"

From Second Life Wiki
Jump to: navigation, search
(Return value clarified to match llRotateTexture.)
Line 1: Line 1:
 
{{LSL_Function
 
{{LSL_Function
 
|inject-2={{LSL_Function/face|face|return=0.0}}
 
|inject-2={{LSL_Function/face|face|return=0.0}}
 +
{{LSL_Function/angle|angle}}
 
|func_id=180|func_sleep=0.0|func_energy=10.0
 
|func_id=180|func_sleep=0.0|func_energy=10.0
 
|func=llGetTextureRot
 
|func=llGetTextureRot
Line 6: Line 7:
 
|func_footnote
 
|func_footnote
 
|func_desc
 
|func_desc
|return_text=that is the texture rotation on {{LSLP|face}}
+
|return_text=that is the texture rotation, expressed as an {{LSLP|angle}}, on {{LSLP|face}}
 
|spec
 
|spec
 
|caveats
 
|caveats

Revision as of 11:37, 14 December 2013

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

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