WoW:API GetComboPoints: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Robot: converting/fixing HTML)
(Updated to reflect unit argument is now mandatory.)
Line 2: Line 2:
'''GetComboPoints()'''
'''GetComboPoints()'''


Delivers how much combo points the rogue or the druids cat form on the actual target has.
Delivers how much combo points the rogue or the druids cat form on the actual target has.  Pass "player" as the first argument to get the player's combo points.  Can also be retrieve combo points for other units.


<tt>
<tt>
   if ( GetComboPoints() == 5 ) then<br>
   if ( GetComboPoints("player") == 5 ) then<br>
     print "You have 5 Combopoints, use a Finishing Move!";<br>
     print "You have 5 Combopoints, use a Finishing Move!";<br>
   end
   end

Revision as of 22:50, 17 October 2008

WoW API < GetComboPoints

GetComboPoints()

Delivers how much combo points the rogue or the druids cat form on the actual target has. Pass "player" as the first argument to get the player's combo points. Can also be retrieve combo points for other units.

 if ( GetComboPoints("player") == 5 ) then
print "You have 5 Combopoints, use a Finishing Move!";
end

The return value is a number (0 up to 5).