FANDOM


UseAction( slotno );

Use an action placed on an action bar.

Parameters Edit

Arguments Edit

slotno
number - An action bar slot number. (Slots "0", "-", and "=" are numbers "10", "11", and "12", respectively.).

Returns Edit

nil
void - A method call without return value.

Example Edit

-- 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 Edit

File:UseAction.png

Reference to the list of slot numbers.

Related Functions Edit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.