v0.13.8

GetCompanionInfo

functionguessedavailable in: camelot

Returns info for a companion.

The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.

Parameters

nametypedescription
typestringCompanion type to query: "CRITTER" or "MOUNT".
idnumberIndex of the slot to query. Starting at 1 and going up to GetNumCompanions("type").

Returns

#nametypedescription
1creatureIDnumberThe NPC ID of the companion.
2creatureNamestringThe name of the companion.
3creatureSpellIDnumberThe spell ID to cast the companion. This is not passed to CallCompanion, but can be used with, e.g., GetSpellInfo.
4iconstringThe texture of the icon for the companion.
5issummonedboolean?1 if the companion is summoned, nil if it's not.
6mountTypenumberBitfield for air/ground/water mounts

In wowlua's emulated client

guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean

sources

Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.