WoW:API CastShapeshiftForm: Difference between revisions

(Total reformat. Not many factual changes.)
Line 51: Line 51:


where '''index''' is the number of the shape as given above.
where '''index''' is the number of the shape as given above.
== Example ==
This Example shows how to return to your human form our of any other form.
for i=1, GetNumShapeshiftForms() do
  _, name, active = GetShapeshiftFormInfo(i);
  if( active ~= nil ) then
      DEFAULT_CHAT_FRAME:AddMessage("SQS: leaving '"..name.."'");
      CastShapeshiftForm(i)
      break;
  end
end




Anonymous user