WoW:API IsActionInRange: Difference between revisions
Jump to navigation
Jump to search
IsActionInRange - Documentation by Flickering
No edit summary |
mNo edit summary |
||
Line 8: | Line 8: | ||
:(actionSlot) | :(actionSlot) | ||
:;actionSlot : Numeric - The action slot to test. | :;actionSlot : Numeric - The [[API TYPE ActionSlot|action slot]] to test. | ||
=== Returns === | === Returns === | ||
:inRange | :inRange |
Revision as of 18:39, 15 July 2006
Test whether an action is in range for use.
inRange = IsActionInRange(actionSlot)
Parameters
Arguments
- (actionSlot)
- actionSlot
- Numeric - The action slot to test.
Returns
- inRange
- inRange
- Flag - nil if the slot has no action or if there is no current target. 0 if the action is out of range, and 1 if the action is in range. Note that it always returns 1 if range does not apply to this action or if you can't use the spell on the target.