# FrameAPICharacterModelBase (widget methods): World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/FrameAPICharacterModelBase

## Functions

### ApplySpellVisualKit

```lua
self:ApplySpellVisualKit(spellVisualKitID, [oneShot])
```

Arguments:
- `spellVisualKitID`: number
- `oneShot`: bool, default false

### CanSetUnit

```lua
self:CanSetUnit(unit)
```

Arguments:
- `unit`: UnitToken

### FreezeAnimation

```lua
self:FreezeAnimation(anim, variation, frame)
```

Arguments:
- `anim`: AnimationDataEnum
- `variation`: number
- `frame`: number

### GetDisplayInfo

```lua
displayID = self:GetDisplayInfo()
```

Returns:
- `displayID`: number

### GetDoBlend

```lua
doBlend = self:GetDoBlend()
```

Returns:
- `doBlend`: bool

### GetKeepModelOnHide

```lua
keepModelOnHide = self:GetKeepModelOnHide()
```

Returns:
- `keepModelOnHide`: bool

### HasAnimation

```lua
hasAnimation = self:HasAnimation(anim)
```

Arguments:
- `anim`: AnimationDataEnum

Returns:
- `hasAnimation`: bool

### PlayAnimKit

```lua
self:PlayAnimKit(animKit, [loop])
```

Arguments:
- `animKit`: number
- `loop`: bool, default false

### RefreshCamera

```lua
self:RefreshCamera()
```

### RefreshUnit

```lua
self:RefreshUnit()
```

### SetAnimation

```lua
self:SetAnimation(anim, [variation])
```

Arguments:
- `anim`: AnimationDataEnum
- `variation`: number, may be nil

### SetBarberShopAlternateForm

```lua
self:SetBarberShopAlternateForm()
```

### SetCamDistanceScale

```lua
self:SetCamDistanceScale(scale)
```

Arguments:
- `scale`: number

### SetCreature

```lua
self:SetCreature(creatureID, [displayID])
```

Arguments:
- `creatureID`: number
- `displayID`: number, default 0

### SetDisplayInfo

```lua
self:SetDisplayInfo(displayID, [mountDisplayID])
```

Arguments:
- `displayID`: number
- `mountDisplayID`: number, may be nil

### SetDoBlend

```lua
self:SetDoBlend([doBlend])
```

Arguments:
- `doBlend`: bool, default false

### SetItem

```lua
self:SetItem(itemID, [appearanceModID], [itemVisualID])
```

Arguments:
- `itemID`: number
- `appearanceModID`: number, may be nil
- `itemVisualID`: number, may be nil

### SetItemAppearance

```lua
self:SetItemAppearance(itemAppearanceID, [itemVisualID], [itemSubclass])
```

Arguments:
- `itemAppearanceID`: number
- `itemVisualID`: number, may be nil
- `itemSubclass`: ItemWeaponSubclass, may be nil

### SetKeepModelOnHide

```lua
self:SetKeepModelOnHide(keepModelOnHide)
```

Arguments:
- `keepModelOnHide`: bool

### SetPortraitZoom

```lua
self:SetPortraitZoom(zoom)
```

Arguments:
- `zoom`: number

### SetRotation

```lua
self:SetRotation(radians, [animate])
```

Arguments:
- `radians`: number
- `animate`: bool, default true

### SetUnit

```lua
success = self:SetUnit(unit, [blend], [useNativeForm])
```

Arguments:
- `unit`: UnitToken
- `blend`: bool, default true
- `useNativeForm`: bool, may be nil

Returns:
- `success`: bool

### StopAnimKit

```lua
self:StopAnimKit()
```

### ZeroCachedCenterXY

```lua
self:ZeroCachedCenterXY()
```

---
Make an addon with your 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."
