SetObjectAnimatedTexture: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 15: Line 15:


== Example ==
== Example ==
__EDIT_ME__
[[File:AnimatedBanana.PNG|300px]]
<syntaxhighlight lang="Lua">
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)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
__EDIT_ME__

Revision as of 11:53, 5 November 2019

SetObjectAnimatedTexture

Type: Function
Context: Client
Introduced: v1.0

Description

__EDIT_ME__

Syntax

SetObjectAnimatedTexture(object, TextureFile, Rows, Columns [, MaterialSlot])

Parameters

  • object
    __EDIT_ME__
  • TextureFile
    __EDIT_ME__
  • Rows
    __EDIT_ME__
  • Columns
    __EDIT_ME__
  • MaterialSlot (optional)
    __EDIT_ME__

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__