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
void llLoopSoundMaster(string sound, float volume)
string llLinksetDataRead(string name)
void llSetAngularVelocity(vector angularVelocity, integer local)
integer llGetListLength(list src)
integer llLinksetDataCountFound(string pattern)
list llParseStringKeepNulls(string src, list seperators, list spacers)
float llRot2Angle(rotation rot)
void llAllowInventoryDrop(integer add)