WoW:API UnitAttackSpeed: Difference between revisions
Jump to navigation
Jump to search
UnitAttackSpeed -Documentation by Flickering-
(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. | ||
---- | ---- | ||
{{ | {{WoW API}} | ||
Revision as of 05:31, 4 January 2006
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.