WowAddons

World of Warcraft Forever API · FrameAPIModelSceneFrameActorBase.md, for your AI

FrameAPIModelSceneFrameActorBase (widget methods)

50 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

ClearModel

self:ClearModel()

GetActiveBoundingBox

boxBottom, boxTop = self:GetActiveBoundingBox()

Returns

boxBottomvector3
boxTopvector3

GetAlpha

alpha = self:GetAlpha()

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

alphanumber

GetAnimation

animation = self:GetAnimation()

Returns

animationAnimationDataEnum

GetAnimationBlendOperation

blendOp = self:GetAnimationBlendOperation()

Returns

blendOpModelBlendOperation

GetAnimationVariation

variation = self:GetAnimationVariation()

Returns

variationnumber

GetDesaturation

strength = self:GetDesaturation()

Returns

strengthnumber

GetMaxBoundingBox

boxBottom, boxTop = self:GetMaxBoundingBox()

Returns

boxBottomvector3
boxTopvector3

GetModelFileID

file = self:GetModelFileID()

Returns

filefileID

GetModelPath

path = self:GetModelPath()

Returns

pathstring

GetModelUnitGUID

guid = self:GetModelUnitGUID()

Returns

guidWOWGUID

GetParticleOverrideScale

scale = self:GetParticleOverrideScale()

Returns

scalenumber may be nil

GetPitch

pitch = self:GetPitch()

Returns

pitchnumber

GetPosition

positionX, positionY, positionZ = self:GetPosition()

Returns

positionXnumber
positionYnumber
positionZnumber

GetRoll

roll = self:GetRoll()

Returns

rollnumber

GetScale

scale = self:GetScale()

Returns

scalenumber

GetSpellVisualKit

spellVisualKitID = self:GetSpellVisualKit()

Returns

spellVisualKitIDnumber

GetYaw

yaw = self:GetYaw()

Returns

yawnumber

Hide

self:Hide()

IsLoaded

isLoaded = self:IsLoaded()

Returns

isLoadedbool

IsPreferringModelCollisionBounds

preferringCollisionBounds = self:IsPreferringModelCollisionBounds()

Returns

preferringCollisionBoundsbool

IsShown

isShown = self:IsShown()

Returns

isShownbool

IsUsingCenterForOrigin

x, y, z = self:IsUsingCenterForOrigin()

Returns

xbool
ybool
zbool

IsVisible

isVisible = self:IsVisible()

Returns

isVisiblebool

PlayAnimationKit

self:PlayAnimationKit(animationKit, [isLooping])

Arguments

animationKitnumber
isLoopingbool default false

SetAlpha

self:SetAlpha(alpha)

Arguments

alphanumber

SetAnimation

self:SetAnimation(animation, [variation], [animSpeed], [animOffsetSeconds])

Arguments

animationAnimationDataEnum
variationnumber may be nil
animSpeednumber default 1
animOffsetSecondsnumber default 0

SetAnimationBlendOperation

self:SetAnimationBlendOperation(blendOp)

Arguments

blendOpModelBlendOperation

SetDesaturation

self:SetDesaturation(strength)

Arguments

strengthnumber

SetGradientMask

self:SetGradientMask(gradientIndex0, gradientIndex1, gradientIndex2, gradientIndex3)

Arguments

gradientIndex0number
gradientIndex1number
gradientIndex2number
gradientIndex3number

SetGradientMaskWithDyes

self:SetGradientMaskWithDyes([grad0DyeColorID], [grad1DyeColorID], [grad2DyeColorID])

Arguments

grad0DyeColorIDnumber may be nil
grad1DyeColorIDnumber may be nil
grad2DyeColorIDnumber may be nil

SetModelByCreatureDisplayID

success = self:SetModelByCreatureDisplayID(creatureDisplayID, [useActivePlayerCustomizations])

Arguments

creatureDisplayIDnumber
useActivePlayerCustomizationsbool default false

Returns

successbool

SetModelByFileID

success = self:SetModelByFileID(asset, [useMips])

Arguments

assetFileAsset
useMipsbool default false

Returns

successbool

SetModelByPath

success = self:SetModelByPath(asset, [useMips])

Arguments

assetFileAsset
useMipsbool default false

Returns

successbool

SetModelByUnit

success = self:SetModelByUnit(unit, [sheatheWeapons], [autoDress], [hideWeapons], [usePlayerNativeForm], [holdBowString], [customRaceID])

Arguments

unitUnitToken
sheatheWeaponsbool default false
autoDressbool default true
hideWeaponsbool default false
usePlayerNativeFormbool default true
holdBowStringbool default false
customRaceIDnumber may be nil

Returns

successbool

SetModelByUnitCreatureDisplayID

success = self:SetModelByUnitCreatureDisplayID(unit)

Arguments

unitUnitToken

Returns

successbool

SetParticleOverrideScale

self:SetParticleOverrideScale([scale])

Arguments

scalenumber may be nil

SetPitch

self:SetPitch(pitch)

Arguments

pitchnumber

SetPlayerModelFromGlues

success = self:SetPlayerModelFromGlues([characterIndex], [sheatheWeapons], [autoDress], [hideWeapons], [usePlayerNativeForm], [customRaceID])

Arguments

characterIndexnumber may be nil
sheatheWeaponsbool default false
autoDressbool default true
hideWeaponsbool default false
usePlayerNativeFormbool default true
customRaceIDnumber may be nil

Returns

successbool

SetPosition

self:SetPosition(positionX, positionY, positionZ)

Arguments

positionXnumber
positionYnumber
positionZnumber

SetPreferModelCollisionBounds

self:SetPreferModelCollisionBounds(preferCollisionBounds)

If true, will try to use the collision bounds of models for sizing and centering. Will fall back to default model bounds if set to False, or if collision bounds are unavailable.

Arguments

preferCollisionBoundsbool

SetRoll

self:SetRoll(roll)

Arguments

rollnumber

SetScale

self:SetScale(scale)

Arguments

scalenumber

SetShown

self:SetShown([show])

Arguments

showbool default false

SetSpellVisualKit

self:SetSpellVisualKit([spellVisualKitID], [oneShot])

Arguments

spellVisualKitIDnumber default 0
oneShotbool default false

SetUseCenterForOrigin

self:SetUseCenterForOrigin([x], [y], [z])

Arguments

xbool default false
ybool default false
zbool default false

SetYaw

self:SetYaw(yaw)

Arguments

yawnumber

Show

self:Show()

StopAnimationKit

self:StopAnimationKit()

TryOn

reason = self:TryOn(itemLinkOrItemModifiedAppearanceID, [handSlotName], [spellEnchantmentID])

Arguments

itemLinkOrItemModifiedAppearanceIDcstring
handSlotNamecstring may be nil
spellEnchantmentIDnumber default 0

Returns

reasonItemTryOnReason may be nil

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows