Wikia

WoWWiki

API IsActionInRange

Talk0
98,484pages on
this wiki
Revision as of 14:14, August 13, 2006 by Mikk (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)

Test whether an action is in range for use.

inRange = IsActionInRange(actionSlot);

Parameters

Arguments

actionSlot 
Numeric - The action slot to test.

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.

Note

If you need more performance than target switching and checking with IsActionInRange provides then check out CheckInteractDistance. It has certain limits and will not work for all ranges, but it is several orders of magnitude faster than target switching/scanning.

Advertisement | Your ad here

Photos

Add a Photo
62,044photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki