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
boxBottom | vector3 | |
|---|---|---|
boxTop | vector3 |
GetAlpha
alpha = self:GetAlpha()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
alpha | number |
|---|
GetAnimation
animation = self:GetAnimation()
Returns
animation | AnimationDataEnum |
|---|
GetAnimationBlendOperation
blendOp = self:GetAnimationBlendOperation()
Returns
blendOp | ModelBlendOperation |
|---|
GetAnimationVariation
variation = self:GetAnimationVariation()
Returns
variation | number |
|---|
GetDesaturation
strength = self:GetDesaturation()
Returns
strength | number |
|---|
GetMaxBoundingBox
boxBottom, boxTop = self:GetMaxBoundingBox()
Returns
boxBottom | vector3 | |
|---|---|---|
boxTop | vector3 |
GetModelFileID
file = self:GetModelFileID()
Returns
file | fileID |
|---|
GetModelPath
path = self:GetModelPath()
Returns
path | string |
|---|
GetModelUnitGUID
guid = self:GetModelUnitGUID()
Returns
guid | WOWGUID |
|---|
GetParticleOverrideScale
scale = self:GetParticleOverrideScale()
Returns
scale | number may be nil |
|---|
GetPitch
pitch = self:GetPitch()
Returns
pitch | number |
|---|
GetPosition
positionX, positionY, positionZ = self:GetPosition()
Returns
positionX | number | |
|---|---|---|
positionY | number | |
positionZ | number |
GetRoll
roll = self:GetRoll()
Returns
roll | number |
|---|
GetScale
scale = self:GetScale()
Returns
scale | number |
|---|
GetSpellVisualKit
spellVisualKitID = self:GetSpellVisualKit()
Returns
spellVisualKitID | number |
|---|
GetYaw
yaw = self:GetYaw()
Returns
yaw | number |
|---|
Hide
self:Hide()
IsLoaded
isLoaded = self:IsLoaded()
Returns
isLoaded | bool |
|---|
IsPreferringModelCollisionBounds
preferringCollisionBounds = self:IsPreferringModelCollisionBounds()
Returns
preferringCollisionBounds | bool |
|---|
IsShown
isShown = self:IsShown()
Returns
isShown | bool |
|---|
IsUsingCenterForOrigin
x, y, z = self:IsUsingCenterForOrigin()
Returns
x | bool | |
|---|---|---|
y | bool | |
z | bool |
IsVisible
isVisible = self:IsVisible()
Returns
isVisible | bool |
|---|
PlayAnimationKit
self:PlayAnimationKit(animationKit, [isLooping])
Arguments
animationKit | number | |
|---|---|---|
isLooping | bool default false |
SetAlpha
self:SetAlpha(alpha)
Arguments
alpha | number |
|---|
SetAnimation
self:SetAnimation(animation, [variation], [animSpeed], [animOffsetSeconds])
Arguments
animation | AnimationDataEnum | |
|---|---|---|
variation | number may be nil | |
animSpeed | number default 1 | |
animOffsetSeconds | number default 0 |
SetAnimationBlendOperation
self:SetAnimationBlendOperation(blendOp)
Arguments
blendOp | ModelBlendOperation |
|---|
SetDesaturation
self:SetDesaturation(strength)
Arguments
strength | number |
|---|
SetGradientMask
self:SetGradientMask(gradientIndex0, gradientIndex1, gradientIndex2, gradientIndex3)
Arguments
gradientIndex0 | number | |
|---|---|---|
gradientIndex1 | number | |
gradientIndex2 | number | |
gradientIndex3 | number |
SetGradientMaskWithDyes
self:SetGradientMaskWithDyes([grad0DyeColorID], [grad1DyeColorID], [grad2DyeColorID])
Arguments
grad0DyeColorID | number may be nil | |
|---|---|---|
grad1DyeColorID | number may be nil | |
grad2DyeColorID | number may be nil |
SetModelByCreatureDisplayID
success = self:SetModelByCreatureDisplayID(creatureDisplayID, [useActivePlayerCustomizations])
Arguments
creatureDisplayID | number | |
|---|---|---|
useActivePlayerCustomizations | bool default false |
Returns
success | bool |
|---|
SetModelByFileID
success = self:SetModelByFileID(asset, [useMips])
Arguments
asset | FileAsset | |
|---|---|---|
useMips | bool default false |
Returns
success | bool |
|---|
SetModelByPath
success = self:SetModelByPath(asset, [useMips])
Arguments
asset | FileAsset | |
|---|---|---|
useMips | bool default false |
Returns
success | bool |
|---|
SetModelByUnit
success = self:SetModelByUnit(unit, [sheatheWeapons], [autoDress], [hideWeapons], [usePlayerNativeForm], [holdBowString], [customRaceID])
Arguments
unit | UnitToken | |
|---|---|---|
sheatheWeapons | bool default false | |
autoDress | bool default true | |
hideWeapons | bool default false | |
usePlayerNativeForm | bool default true | |
holdBowString | bool default false | |
customRaceID | number may be nil |
Returns
success | bool |
|---|
SetModelByUnitCreatureDisplayID
success = self:SetModelByUnitCreatureDisplayID(unit)
Arguments
unit | UnitToken |
|---|
Returns
success | bool |
|---|
SetParticleOverrideScale
self:SetParticleOverrideScale([scale])
Arguments
scale | number may be nil |
|---|
SetPitch
self:SetPitch(pitch)
Arguments
pitch | number |
|---|
SetPlayerModelFromGlues
success = self:SetPlayerModelFromGlues([characterIndex], [sheatheWeapons], [autoDress], [hideWeapons], [usePlayerNativeForm], [customRaceID])
Arguments
characterIndex | number may be nil | |
|---|---|---|
sheatheWeapons | bool default false | |
autoDress | bool default true | |
hideWeapons | bool default false | |
usePlayerNativeForm | bool default true | |
customRaceID | number may be nil |
Returns
success | bool |
|---|
SetPosition
self:SetPosition(positionX, positionY, positionZ)
Arguments
positionX | number | |
|---|---|---|
positionY | number | |
positionZ | number |
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
preferCollisionBounds | bool |
|---|
SetRoll
self:SetRoll(roll)
Arguments
roll | number |
|---|
SetScale
self:SetScale(scale)
Arguments
scale | number |
|---|
SetShown
self:SetShown([show])
Arguments
show | bool default false |
|---|
SetSpellVisualKit
self:SetSpellVisualKit([spellVisualKitID], [oneShot])
Arguments
spellVisualKitID | number default 0 | |
|---|---|---|
oneShot | bool default false |
SetUseCenterForOrigin
self:SetUseCenterForOrigin([x], [y], [z])
Arguments
x | bool default false | |
|---|---|---|
y | bool default false | |
z | bool default false |
SetYaw
self:SetYaw(yaw)
Arguments
yaw | number |
|---|
Show
self:Show()
StopAnimationKit
self:StopAnimationKit()
TryOn
reason = self:TryOn(itemLinkOrItemModifiedAppearanceID, [handSlotName], [spellEnchantmentID])
Arguments
itemLinkOrItemModifiedAppearanceID | cstring | |
|---|---|---|
handSlotName | cstring may be nil | |
spellEnchantmentID | number default 0 |
Returns
reason | ItemTryOnReason may be nil |
|---|