World of Warcraft Forever API · FrameAPICharacterModelBase.md, for your AI
FrameAPICharacterModelBase (widget methods)
24 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
ApplySpellVisualKit
self:ApplySpellVisualKit(spellVisualKitID, [oneShot])
Arguments
spellVisualKitID | number | |
|---|---|---|
oneShot | bool default false |
CanSetUnit
self:CanSetUnit(unit)
Arguments
unit | UnitToken |
|---|
FreezeAnimation
self:FreezeAnimation(anim, variation, frame)
Arguments
anim | AnimationDataEnum | |
|---|---|---|
variation | number | |
frame | number |
GetDisplayInfo
displayID = self:GetDisplayInfo()
Returns
displayID | number |
|---|
GetDoBlend
doBlend = self:GetDoBlend()
Returns
doBlend | bool |
|---|
GetKeepModelOnHide
keepModelOnHide = self:GetKeepModelOnHide()
Returns
keepModelOnHide | bool |
|---|
HasAnimation
hasAnimation = self:HasAnimation(anim)
Arguments
anim | AnimationDataEnum |
|---|
Returns
hasAnimation | bool |
|---|
PlayAnimKit
self:PlayAnimKit(animKit, [loop])
Arguments
animKit | number | |
|---|---|---|
loop | bool default false |
RefreshCamera
self:RefreshCamera()
RefreshUnit
self:RefreshUnit()
SetAnimation
self:SetAnimation(anim, [variation])
Arguments
anim | AnimationDataEnum | |
|---|---|---|
variation | number may be nil |
SetBarberShopAlternateForm
self:SetBarberShopAlternateForm()
SetCamDistanceScale
self:SetCamDistanceScale(scale)
Arguments
scale | number |
|---|
SetCreature
self:SetCreature(creatureID, [displayID])
Arguments
creatureID | number | |
|---|---|---|
displayID | number default 0 |
SetDisplayInfo
self:SetDisplayInfo(displayID, [mountDisplayID])
Arguments
displayID | number | |
|---|---|---|
mountDisplayID | number may be nil |
SetDoBlend
self:SetDoBlend([doBlend])
Arguments
doBlend | bool default false |
|---|
SetItem
self:SetItem(itemID, [appearanceModID], [itemVisualID])
Arguments
itemID | number | |
|---|---|---|
appearanceModID | number may be nil | |
itemVisualID | number may be nil |
SetItemAppearance
self:SetItemAppearance(itemAppearanceID, [itemVisualID], [itemSubclass])
Arguments
itemAppearanceID | number | |
|---|---|---|
itemVisualID | number may be nil | |
itemSubclass | ItemWeaponSubclass may be nil |
SetKeepModelOnHide
self:SetKeepModelOnHide(keepModelOnHide)
Arguments
keepModelOnHide | bool |
|---|
SetPortraitZoom
self:SetPortraitZoom(zoom)
Arguments
zoom | number |
|---|
SetRotation
self:SetRotation(radians, [animate])
Arguments
radians | number | |
|---|---|---|
animate | bool default true |
SetUnit
success = self:SetUnit(unit, [blend], [useNativeForm])
Arguments
unit | UnitToken | |
|---|---|---|
blend | bool default true | |
useNativeForm | bool may be nil |
Returns
success | bool |
|---|
StopAnimKit
self:StopAnimKit()
ZeroCachedCenterXY
self:ZeroCachedCenterXY()