Difference between revisions of "LlGetTextureOffset"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
m |
|||
Line 9: | Line 9: | ||
|caveats | |caveats | ||
|constants | |constants | ||
|examples=< | |examples= | ||
//Tells the owner the texture offset on | <lsl>//Tells the owner the texture offset on all sides | ||
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 offset is " + (string)llGetTextureOffset(i)); | |||
++i; | |||
} | |||
} | } | ||
} | }</lsl> | ||
</ | |||
|helpers | |helpers | ||
|also_functions | |also_functions={{LSL DefineRow||[[llOffsetTexture]]|}} | ||
{{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: 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
<lsl>//Tells the owner the texture offset on all sides default {
state_entry() { integer i = 0; integer max = llGetNumberOfSides(); while(i < max) { llSay(0,"Face "+(string)i+" texture offset is " + (string)llGetTextureOffset(i)); ++i; } }}</lsl>
See Also
Functions
• | llOffsetTexture | |||
• | llGetNumberOfSides |