SetObjectAnimatedTexture
From Onset Developer Wiki
Description
Sets a flipbook texture on an object.
Syntax
SetObjectAnimatedTexture(object, TextureFile, Rows, Columns [, MaterialSlot])
Parameters
- object
The object identifier. - TextureFile
The files in your package directory. - Rows
Number of rows of your flipbook texture. - Columns
Number of columns of your flipbook texture. - MaterialSlot (optional)
The objects model material slot.
Return Value
- Returns true on success.
Example
local function OnPackageStart()
local TextureObject = CreateObject(1, 128651.5234375, 79332.890625, 1579.2681884766)
SetObjectAnimatedTexture(TextureObject, GetPackageName().."/client/files/AnimatedBanana.PNG", 2, 4)
end
AddEvent("OnPackageStart", OnPackageStart)