Skip to content

llSetTextureAnim

function ll.SetTextureAnim(Mode: number, Face: number, SizeX: number, SizeY: number, Start: number, Length: number, Rate: number)

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
Mode (number)
Mask of Mode flags.
Face (number)
Face number or ALL_SIDES.
SizeX (number)
Horizontal frames (ignored for ROTATE and SCALE).
SizeY (number)
Vertical frames (ignored for ROTATE and SCALE).
Start (number)
Start position/frame number (or radians for ROTATE).
Length (number)
number of frames to display (or radians for ROTATE).
Rate (number)
Frames per second (must not greater than zero).

Add example usage here showing SLua/Luau syntax with ll.SetTextureAnim().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.