WoW:API UnitAttackSpeed: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(First version)
 
No edit summary
Line 17: Line 17:
:;mainSpeed : Number - The unit's base main hand attack speed (seconds)
:;mainSpeed : Number - The unit's base main hand attack speed (seconds)
:;offSpeed : Number - The unit's offhand attack speed (seconds) - <tt>nil</tt> if the unit has no offhand weapon.
:;offSpeed : Number - The unit's offhand attack speed (seconds) - <tt>nil</tt> if the unit has no offhand weapon.


----
----
{{Template:WoW API}}
{{WoW API}}
[[Category:API Unit Functions|UnitAttackSpeed]]

Revision as of 05:31, 4 January 2006

UnitAttackSpeed -Documentation by Flickering-
mainSpeed, offSpeed = UnitAttackSpeed("unit");

Returns the unit's melee attack speed for each hand.


Arguments
("unit")
unit
String - The UnitId to get information from. (Verified for "player" and "target")

Returns
mainSpeed, offSpeed
mainSpeed
Number - The unit's base main hand attack speed (seconds)
offSpeed
Number - The unit's offhand attack speed (seconds) - nil if the unit has no offhand weapon.



Template:WoW API