API GetRangedCritChance

104,543pages on
this wiki
Add New Page
Add New Page Talk0
WoW API < GetRangedCritChance

Parameters Edit


Returns Edit

The players critical strike chance with the currently equipped range weapon as a floating point figure.

Notes Edit

If you are displaying this figure in a UI element and want it to update, hook to the UNIT_INVENTORY_CHANGED and SPELLS_CHANGED events as well as any other that effect equipment and buffs.

Formatting Edit

To retrieve the ranged crit chance as a two-decimal float (like 10.25), use the following function:

myRangedCrit = format("%.2f%%", GetRangedCritChance());

Also on Fandom

Random Wiki