Difference between revisions of "LlGetTextureRot"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
m (Revert: those little templates *must* go at the top) |
|||
Line 10: | Line 10: | ||
|caveats | |caveats | ||
|constants | |constants | ||
|examples | |examples=<pre> | ||
//Tells the owner the texture rotation on 6 sides | |||
default | |||
{ | |||
state_entry() | |||
{ | |||
integer i; | |||
for( i = 1; i < 7; i++ ) | |||
llSay(0,"Side " + (string)i + " texture offset is: " + (string)llGetTextureRot(i)); | |||
} | |||
} | |||
</pre> | |||
|helpers | |helpers | ||
|also_functions | |also_functions |
Revision as of 04:19, 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
//Tells the owner the texture rotation on 6 sides default { state_entry() { integer i; for( i = 1; i < 7; i++ ) llSay(0,"Side " + (string)i + " texture offset is: " + (string)llGetTextureRot(i)); } }