llSetTextureAnim
LSLvoid llSetTextureAnim(integer mode, integer face, integer sizex, integer sizey, float start, float length, float rate)
Animates a texture by setting the texture scale and offset.\ Mode is a bitmask of animation options.\ Face specifies which object face to animate.\ SizeX and SizeY specify the number of horizontal and vertical frames.Start specifes the animation start point.\ Length specifies the animation duration.\ Rate specifies the animation playback rate.
Parameters
| Type | Name | What it does |
|---|---|---|
| integer | mode | ANIM_ON | LOOP | SMOOTH (scroll), ROTATE, SCALE, PING_PONG, REVERSE. |
| integer | face | A face number or ALL_SIDES. |
| integer | sizex | Frames across (1 for a scroll). |
| integer | sizey | Frames down (1 for a scroll). |
| float | start | First frame. |
| float | length | Frames to play, 0 for all. |
| float | rate | Frames (or texture widths) per second. |
Example
default
{
state_entry()
{
// A flowing-water scroll: one texture width every 4 seconds, along the face.
llSetTextureAnim(ANIM_ON | LOOP | SMOOTH, ALL_SIDES, 1, 1, 0, 0, 0.25);
}
}
Energy
10
The Linden Scripting Library — what every SL-compatible grid provides.
More in LSL
string llGetUsername(key id)
integer llBase64ToInteger(string str)
void llLinkSitTarget(integer link, vector offset, rotation rot)
string llGetParcelMusicURL()
integer llSubStringIndex(string source, string pattern)
void llSetCameraParams(list rules)
void llSetObjectPermMask(integer mask, integer value)
list llParcelMediaQuery(list aList)