API:UseAction

__NOTOC__
UseAction
UseAction( slotno );
Use an action placed on an action bar.
== Parameters ==
=== Arguments ===
:;slotno
::number - An action bar slot number. (Slots "0", "-", and "=" are numbers "10", "11", and "12", respectively.).
=== Returns ===
:;nil
::void - A method call without return value.
== Example ==
-- If a valid action icon has been placed on slotno, the action will be performed.
local function MyAdd.Perform(slotno)
 tonumber(slotno);
 if( GetActionUsable( slotno ) ) then
 UseAction(slotno);
 else
 SendSystemChat("Action cannot be used.");
 end
== Notes ==
Reference to the list of slot numbers.
== Related Functions ==
* GetActionUsable