m
Move page script moved page API CallCompanion to WoW:API CallCompanion without leaving a redirect
(boilerplate) |
m (Move page script moved page API CallCompanion to WoW:API CallCompanion without leaving a redirect) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
==Arguments== | ==Arguments== | ||
;type : String - The type of companion to summon or dismiss ("CRITTER", or "MOUNT"). | ;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). | ;id : Integer - The companion index to summon or dismiss (ascending integers starting from 1). | ||
| Line 12: | Line 12: | ||
The following macro summons a random critter your character has acquired: | The following macro summons a random critter your character has acquired: | ||
/run CallCompanion("CRITTER", random(GetNumCompanions("CRITTER"))) | /run CallCompanion("CRITTER", random(GetNumCompanions("CRITTER"))) | ||
Note that there is an API call to do exactly that, see [[API_SummonRandomCritter]] | |||