Difference between revisions of "LlGetTextureRot"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
m |
|||
Line 1: | Line 1: | ||
{{LSL_Function | {{LSL_Function | ||
|inject-2={{LSL_Function/face| | |inject-2={{LSL_Function/face|face}} | ||
|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 | ||
|return_type=float|p1_type=integer|p1_name= | |return_type=float|p1_type=integer|p1_name=face | ||
|func_footnote | |func_footnote | ||
|func_desc | |func_desc | ||
|return_text=that is the texture rotation on {{LSLP| | |return_text=that is the texture rotation on {{LSLP|face}} | ||
|spec | |spec | ||
|caveats | |caveats |
Revision as of 09:38, 20 June 2012
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: float llGetTextureRot( integer face );180 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a float that is the texture rotation on face
• integer | face | – | face number or ALL_SIDES |
If face is ALL_SIDES then the function works on all sides.
Caveats
- The function silently fails if its face value indicates a face that does not exist.
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 |