SetObjectAnimatedTexture: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|object| | {{FuncParam|object|The object identifier.}} | ||
{{FuncParam|TextureFile| | {{FuncParam|TextureFile|The files in your package directory.}} | ||
{{FuncParam|Rows| | {{FuncParam|Rows|Number of rows of your flipbook texture.}} | ||
{{FuncParam|Columns | | {{FuncParam|Columns|Number of columns of your flipbook texture.}} | ||
{{FuncParamOptional|MaterialSlot| | {{FuncParamOptional|MaterialSlot|The objects model material slot.}} | ||
{{FuncReturnValue|__EDIT_ME__}} | {{FuncReturnValue|__EDIT_ME__}} |
Revision as of 11:54, 5 November 2019
Description
__EDIT_ME__
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
- __EDIT_ME__
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)
See also
__EDIT_ME__