ESODecoded

EVENT_ACTIVE_WEAPON_PAIR_CHANGED

ESO Lua API function — used by 106 of the 3,030 addons we indexed (combined 19,462,159 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

EVENT_ACTIVE_WEAPON_PAIR_CHANGED([ActiveWeaponPair|#ActiveWeaponPair] activeWeaponPair, bool locked)

Real usage — from Bandits User Interface

	if BUI.Vars.ReticleResist~=3 or BUI.Vars.EnchantTimer~=3 or BUI.Vars.NotificationsGroup or (BUI.Vars.EnableStats and BUI.Vars.StatsBuffs) then
		EVENT_MANAGER:RegisterForEvent("BUI_Buffs", EVENT_ACTIVE_WEAPON_PAIR_CHANGED,	OnPairChanged)
	

Short excerpt from the shipping addon Bandits User Interfaceits 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
Bandits User Interface6,130,317
Lui Extended3,001,958
Azurah - Interface Enhanced1,462,318
Auto Recharge (and repair)1,014,626
Greymind Quick Slot Bar710,122
Wykkyd Outfitter632,442