WoW:API CallCompanion: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Initial creation)
 
Line 17: Line 17:


=== Returns ===
=== Returns ===
<!-- List each return value, together with its type -->
<!-- Result of simple test during beta, 9-23-08. May want to check again later. -->
Will summon the specified companion.
:''nil''


== Example ==
== Example ==

Revision as of 21:51, 23 September 2008

WoW API < CallCompanion


Summons the specified companion. New in Patch 3.0

CallCompanion("type", id)

Parameters

Arguments

("type")
type
String - The TypeID to query (e.g. "CRITTER", or "MOUNT")
id
Integer - The slot id to query (starts at 1).

Returns

nil

Example

CallCompanion("CRITTER",1)

Result

The first mini-pet you have will be summoned.