WoW:API UnitAttackSpeed: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
({{wowapi}}, format)
Line 1: Line 1:
<center>'''UnitAttackSpeed''' ''-Documentation by [[user:Flickering|Flickering]]-''</center>
{{wowapi}} __NOTOC__
 
Returns the unit's melee attack speed for each hand.
  mainSpeed, offSpeed = UnitAttackSpeed("unit");
  mainSpeed, offSpeed = UnitAttackSpeed("unit");


Returns the unit's melee attack speed for each hand.
==Parameters==
 
===Arguments===
----
:;unit : [[UnitId]] - The unit to get information from. (Verified for <tt>"player"</tt> and <tt>"target"</tt>)
;''Arguments''
 
:("unit")
:;unit : String - The [[API TYPE UnitId|UnitId]] to get information from. (Verified for <tt>"player"</tt> and <tt>"target"</tt>)
 
----
;''Returns''


:mainSpeed, offSpeed
===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.
----
{{WoW API}}

Revision as of 20:09, 23 December 2006

WoW API < UnitAttackSpeed

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.