Difference between revisions of "LlGetTextureOffset"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
Line 16: | Line 16: | ||
{ | { | ||
integer i; | integer i; | ||
for( i = 1; i < | for( i = 1; i < 7; i++ ) | ||
llSay(0,"Side " + (string)i + " texture offset is: " + (string)llGetTextureOffset(i)); | llSay(0,"Side " + (string)i + " texture offset is: " + (string)llGetTextureOffset(i)); | ||
} | } |
Revision as of 04:13, 14 December 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: vector llGetTextureOffset( integer face );178 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a vector that is the texture offset of face in the x and y components
• integer | face | – | face number or ALL_SIDES |
If face is ALL_SIDES then the function as if on face zero.
Caveats
- If face indicates a face that does not exist the return is <0.0, 0.0, 0.0>
Examples
//Tells the owner the texture offset on 6 sides default { state_entry() { integer i; for( i = 1; i < 7; i++ ) llSay(0,"Side " + (string)i + " texture offset is: " + (string)llGetTextureOffset(i)); } }