Summons the specified companion.
- string - The type of companion to summon or dismiss: "CRITTER" or "MOUNT".
- number - The companion index to summon or dismiss, ascending from 1.
The following macro summons the [alphabetically] first mount your character has acquired:
The following macro summons a random mount your character has acquired:
/run CallCompanion("MOUNT", random(GetNumCompanions("MOUNT")))
- The list of companions is usually, but not always, alphabetically sorted. You may not rely on the indices to remain stable, even if the number of companions is not altered.
Patch 5.0.4 / API (2012-08-28): Companions are now account-wide. This function only works for non-combat companions (battle pets) your character had acquired before the account-wide merge, as well as all mounts. For summoning battle pets, use the C_PetJournal API.
Patch 3.0.2 / API (2008-10-14): Added.