v0.13.8

Animation

object type36 methodsavailable in: camelot

It has every method of Object, plus 36 of its own.

Inherits from

  1. Animation · 36
  2. Object · 5
  3. FrameScriptObject · 21

The number is each type's own documented methods. A Animation has all of them.

Methods

In the emulator: 23 implemented, 13 guessed.

methodwhat it doesstatus
GetDurationReturns the animation's duration in seconds. · by wowlua
(): number
implemented
GetElapsedReturns how long the animation has been playing, in seconds. · by wowlua
(): number
guessed
GetEndDelayReturns the delay after the animation ends, in seconds. · by wowlua
(): number
guessed
GetOrderReturns the animation's place in its group's order. · by wowlua
(): number
guessed
GetProgressReturns how far the animation has played, from 0 to 1. · by wowlua
(): number
guessed
GetRegionParentReturns the region the animation's group belongs to. · by wowlua
(): CScriptObject
guessed
GetScriptReturns the animation's handler for the script type. · by wowlua
(scriptTypeName: ScriptTypeName, bindingType: ScriptBindingType): LuaFunctionReference
implemented
GetSmoothProgressReturns how far the animation has played, from 0 to 1, with its smoothing applied. · by wowlua
(): number
guessed
GetSmoothingReturns the smoothing the animation applies to its progress. · by wowlua
(): SmoothingType
guessed
GetStartDelayReturns the delay before the animation starts, in seconds. · by wowlua
(): number
guessed
GetTargetReturns the region or object the animation acts on. · by wowlua
(): CScriptObject
guessed
HasScriptWhether the animation supports the script type. · by wowlua
(scriptName: string): boolean
implemented
HookScriptAdds a handler that runs after the animation's existing handler for the script type. · by wowlua
(scriptTypeName: ScriptTypeName, script: LuaFunctionReference, bindingType: ScriptBindingType): boolean
implemented
IsDelayingWhether the animation is in its start or end delay. · by wowlua
(): boolean
implemented
IsDoneWhether the animation has finished playing. · by wowlua
(): boolean
implemented
IsPausedWhether the animation is paused. · by wowlua
(): boolean
implemented
IsPlayingWhether the animation is playing. · by wowlua
(): boolean
implemented
IsStoppedWhether the animation is stopped. · by wowlua
(): boolean
implemented
PausePauses the animation. · by wowlua
()
guessed
PlayPlays the animation. · by wowlua
()
guessed
RestartPlays the animation again from its start. · by wowlua
()
guessed
SetChildKeySets the animation's target to the child of its group's parent under the key. · by wowlua
(childKey: string): boolean
implemented
SetDurationSets the animation's duration in seconds. · by wowlua
(durationSec: number, recomputeGroupDuration: boolean)
implemented
SetEndDelaySets the delay after the animation ends, in seconds. · by wowlua
(delaySec: number, recomputeGroupDuration: boolean)
implemented
SetOrderSets the animation's place in its group's order. Animations with the same order play together. · by wowlua
(newOrder: number)
implemented
SetParentMoves the animation into the animation group. · by wowlua
(parent: AnimGroup, order: number?)
implemented
SetPlayingPlays or stops the animation. · by wowlua
(play: boolean)
implemented
SetScriptSets the animation's handler for the script type, or clears it when script is nil. · by wowlua
(scriptTypeName: ScriptTypeName, script: LuaFunctionReference?)
implemented
SetSmoothProgressSets the smooth progress for an animation. · warcraft.wiki.gg ↗
(durationSec: number)
implemented
SetSmoothingThis method for animations allows you to specify how the animation's speed will change over time. · warcraft.wiki.gg ↗
(weights: SmoothingType)
implemented
SetStartDelaySets the delay before the animation starts, in seconds. · by wowlua
(delaySec: number, recomputeGroupDuration: boolean)
implemented
SetTargetSets the region or object the animation acts on. · by wowlua
(target: CScriptObject): boolean
implemented
SetTargetKeySets the animation's target to the child of its group's parent under the key. · by wowlua
(key: string): boolean
implemented
SetTargetNameSets the animation's target to the region with the global name. · by wowlua
(name: string): boolean
implemented
SetTargetParentSets the animation's target to its group's parent. · by wowlua
(): boolean
implemented
StopStops the animation. · by wowlua
()
guessed

sources

Methods and inheritance: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.