World of Warcraft Forever API · SimpleAnimAPI.md, for your AI
SimpleAnimAPI (widget methods)
36 functions, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
GetDuration
durationSec = self:GetDuration()
Returns
durationSec | number |
|---|
GetElapsed
elapsedSec = self:GetElapsed()
Returns
elapsedSec | number |
|---|
GetEndDelay
delaySec = self:GetEndDelay()
Returns
delaySec | number |
|---|
GetOrder
order = self:GetOrder()
Returns
order | number |
|---|
GetProgress
progress = self:GetProgress()
Returns
progress | number |
|---|
GetRegionParent
region = self:GetRegionParent()
Returns
region | CScriptObject |
|---|
GetScript
script = self:GetScript(scriptTypeName, [bindingType])
Arguments
scriptTypeName | ScriptTypeName | |
|---|---|---|
bindingType | ScriptBindingType default "Extrinsic" |
Returns
script | LuaFunctionReference |
|---|
GetSmoothProgress
progress = self:GetSmoothProgress()
Returns
progress | number |
|---|
GetSmoothing
weights = self:GetSmoothing()
Returns
weights | SmoothingType |
|---|
GetStartDelay
delaySec = self:GetStartDelay()
Returns
delaySec | number |
|---|
GetTarget
target = self:GetTarget()
Returns
target | CScriptObject |
|---|
HasScript
hasScript = self:HasScript(scriptName)
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Arguments
scriptName | cstring |
|---|
Returns
hasScript | bool |
|---|
HookScript
success = self:HookScript(scriptTypeName, script, [bindingType])
Arguments
scriptTypeName | ScriptTypeName | |
|---|---|---|
script | LuaFunctionReference | |
bindingType | ScriptBindingType default "Extrinsic" |
Returns
success | bool |
|---|
IsDelaying
isDelaying = self:IsDelaying()
Returns
isDelaying | bool |
|---|
IsDone
isDone = self:IsDone()
Returns
isDone | bool |
|---|
IsPaused
isPaused = self:IsPaused()
Returns
isPaused | bool |
|---|
IsPlaying
isPlaying = self:IsPlaying()
Returns
isPlaying | bool |
|---|
IsStopped
isStopped = self:IsStopped()
Returns
isStopped | bool |
|---|
Pause
self:Pause()
Play
self:Play()
Restart
self:Restart()
SetChildKey
success = self:SetChildKey(childKey)
Arguments
childKey | cstring |
|---|
Returns
success | bool |
|---|
SetDuration
self:SetDuration(durationSec, [recomputeGroupDuration])
Arguments
durationSec | number | |
|---|---|---|
recomputeGroupDuration | bool default true |
SetEndDelay
self:SetEndDelay(delaySec, [recomputeGroupDuration])
Arguments
delaySec | number | |
|---|---|---|
recomputeGroupDuration | bool default true |
SetOrder
self:SetOrder(newOrder)
Arguments
newOrder | number |
|---|
SetParent
self:SetParent(parent, [order])
Arguments
parent | SimpleAnimGroup | |
|---|---|---|
order | number may be nil |
SetPlaying
self:SetPlaying(play)
Arguments
play | bool |
|---|
SetScript
self:SetScript(scriptTypeName, [script])
Arguments
scriptTypeName | ScriptTypeName | |
|---|---|---|
script | LuaFunctionReference may be nil |
SetSmoothProgress
self:SetSmoothProgress(durationSec)
Arguments
durationSec | number |
|---|
SetSmoothing
self:SetSmoothing(weights)
Arguments
weights | SmoothingType |
|---|
SetStartDelay
self:SetStartDelay(delaySec, [recomputeGroupDuration])
Arguments
delaySec | number | |
|---|---|---|
recomputeGroupDuration | bool default true |
SetTarget
success = self:SetTarget(target)
Arguments
target | CScriptObject |
|---|
Returns
success | bool |
|---|
SetTargetKey
success = self:SetTargetKey(key)
Arguments
key | cstring |
|---|
Returns
success | bool |
|---|
SetTargetName
success = self:SetTargetName(name)
Arguments
name | cstring |
|---|
Returns
success | bool |
|---|
SetTargetParent
success = self:SetTargetParent()
Returns
success | bool |
|---|
Stop
self:Stop()