Fandom

WoWWiki

API CallCompanion

104,634pages on
this wiki
Add New Page
Talk0 Share

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.

WoW API < CallCompanion

Summons the specified companion. New in Patch 3.0

CallCompanion("type", id)

ArgumentsEdit

type 
String (companionType) - The type of companion to summon or dismiss ("CRITTER", or "MOUNT").
id 
Integer - The companion index to summon or dismiss (ascending integers starting from 1).

ExampleEdit

The following macro summons the [alphabetically] first critter your character has acquired:

/run CallCompanion("CRITTER",1)

The following macro summons a random critter your character has acquired:

/run CallCompanion("CRITTER", random(GetNumCompanions("CRITTER")))

Note that there is an API call to do exactly that, see API_SummonRandomCritter

Also on Fandom

Random Wiki