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=<pre> | ||
//Tells the owner the texture offset on 6 sides | |||
default | |||
{ | |||
state_entry() | |||
{ | |||
integer i; | |||
for( i = 1; i < 8; i++ ) | |||
llSay(0,"Side " + (string)i + " texture offset is: " + (string)llGetTextureOffset(i)); | |||
} | |||
} | |||
</pre> | |||
|helpers | |helpers | ||
|also_functions | |also_functions |
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 < 8; i++ ) llSay(0,"Side " + (string)i + " texture offset is: " + (string)llGetTextureOffset(i)); } }