WoW:API UnitAttackSpeed: Difference between revisions
(First version) |
m (Move page script moved page API UnitAttackSpeed to API UnitAttackSpeed without leaving a redirect) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
Returns the unit's melee attack speed for each hand. | |||
mainSpeed, offSpeed = UnitAttackSpeed("unit"); | mainSpeed, offSpeed = UnitAttackSpeed("unit"); | ||
==Parameters== | |||
===Arguments=== | |||
- | :;unit : [[UnitId]] - The unit to get information from. (Verified for <tt>"player"</tt> and <tt>"target"</tt>) | ||
===Returns=== | |||
:;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. | ||
Latest revision as of 04:47, 15 August 2023
Returns the unit's melee attack speed for each hand.
mainSpeed, offSpeed = UnitAttackSpeed("unit");
Parameters
Arguments
- unit
- UnitId - The unit to get information from. (Verified for "player" and "target")
Returns
- 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.