Forgot? Join

Scripting

LSL Guide

Every script function this grid actually runs, read straight from the region software rather than copied from a wiki — including the wolf* functions that exist only here.

Functions · Constants

llSetTextureAnim

LSL
void 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

TypeName 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