Difference between revisions of "LlGetTextureRot"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
m |
|||
Line 10: | Line 10: | ||
|caveats | |caveats | ||
|constants | |constants | ||
|examples=< | |examples=<lsl>//Tells the owner the texture rotation on all sides | ||
//Tells the owner the texture rotation on | |||
default | default | ||
{ | { | ||
state_entry() | state_entry() | ||
{ | { | ||
integer i; | integer i = 0; | ||
integer max = llGetNumberOfSides(); | |||
llSay(0," | while(i < max) | ||
{ | |||
llSay(0,"Face "+(string)i+" texture rotation is " + (string)llGetTextureRot(i)); | |||
++i; | |||
} | |||
} | } | ||
} | }</lsl> | ||
</ | |||
|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
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: float llGetTextureRot( integer side );180 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
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.
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 |