World of Warcraft Forever API · C_NamePlate.md, for your AI
C_NamePlate
4 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
C_NamePlate.GetNamePlateForUnit
nameplate = C_NamePlate.GetNamePlateForUnit(unitToken, [includeForbidden])
Arguments
unitToken | UnitTokenNamePlate | |
|---|---|---|
includeForbidden | bool default false |
Returns
nameplate | NamePlateFrame |
|---|
C_NamePlate.GetNamePlateSize
width, height = C_NamePlate.GetNamePlateSize()
Returns
width | uiUnit | |
|---|---|---|
height | uiUnit |
C_NamePlate.GetNamePlates
nameplates = C_NamePlate.GetNamePlates()
Returns
nameplates | NamePlateFrame[] |
|---|
C_NamePlate.SetNamePlateSize
C_NamePlate.SetNamePlateSize(width, height)
Arguments
width | uiUnit | |
|---|---|---|
height | uiUnit |