GetUnitChampionPoints
ESO Lua API function — used by 51 of the 3,030 addons we indexed (combined 10,681,843 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetUnitChampionPoints(string unitTag)Returns: integer championPoints
Real usage — from LibCombat
charData.roleId = GetSelectedLFGRole()
charData.CPtotal = GetUnitChampionPoints("player")
charData.APHealth = GetAttributeSpentPoints(ATTRIBUTE_HEALTH)Short excerpt from the shipping addon LibCombat — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| LibCombat | 5,017,654 |
| Azurah - Interface Enhanced | 1,462,318 |
| Auto Category - Revised | 1,180,586 |
| Foundry Tactical Combat (FTC) | 1,097,601 |
| Wykkyd Toolbar | 567,448 |
| EasyTravel | 293,327 |