llGetTextureOffset

From Second Life Wiki
Revision as of 07:02, 14 December 2007 by Strife Onizuka (talk | contribs)
Jump to navigation Jump to search

Summary

Function: vector llGetTextureOffset( integer face );

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>
All Issues ~ Search JIRA for related Bugs

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

Deep Notes

Search JIRA for related Issues

Signature

function vector llGetTextureOffset( integer face );