WoW:API IsActionInRange: Difference between revisions

no edit summary
m ({{wowapi}})
No edit summary
Line 1: Line 1:
{{wowapi}}
{{wowapi}} __NOTOC__
Test whether an action is in range for use.
Test whether an action is in range for use.


Line 5: Line 5:
== Parameters ==
== Parameters ==
=== Arguments ===
=== Arguments ===
:;actionSlot : Numeric - The [[API TYPE ActionSlot|action slot]] to test.
:;actionSlot : Numeric - The [[actionSlot|action slot]] to test.
=== Returns ===
=== Returns ===
:;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.
:;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.
Anonymous user