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
integer llGetPermissions()
vector llGetTorque()
integer llGetStatus(integer status)
integer llClearPrimMedia(integer face)
void llScaleTexture(float u, float v, integer face)
vector llGetVel()
void llTakeControls(integer controls, integer accept, integer pass_on)
void llDialog(key avatarId, string message, list buttons, integer chat_channel)