ESODecoded

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 LibCombatits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
LibCombat5,017,654
Azurah - Interface Enhanced1,462,318
Auto Category - Revised1,180,586
Foundry Tactical Combat (FTC)1,097,601
Wykkyd Toolbar567,448
EasyTravel293,327